The art of caching, with Redis

KNNX Corp.
2 min readNov 6, 2019

Recently in our project, we encountered the problem of longer response time. This was due to a rapid increase in the data of our product which led to heavy database requests and huge costs. Until now, we were only using the database for storing data.

After doing some research, we came to know we can save the number of requests to the database and finally decided to do something known as Caching.

What is Caching?

Caching is nothing but a process of storing data in the cache memory, which is also known as CPU memory. The main purpose of the cache is to reduce the time needed to access data stored outside of the application’s main memory space. So data can be served faster by the cache.

The next question we had was ‘ which in-memory database will be suitable for us’.

There are many in-memory databases we could choose from — Redis, Memcached, CouchDB, NCache, etc.

In our case, we went ahead with Redis.

6 reasons we chose Redis…

  1. No SQL database so no need to save data in SQL format
  2. Easy to install, and easy to use
  3. Open source and stable
  4. In memory with high availability
  5. It supports very high…



KNNX Corp.

KNNX is a global leader in Distributed Ledger Technology and Enterprise Products. To learn more, head over to: