The Personal Website of Jeremy Boles

Redis

A fast in-memory data store, usually doing cache duty.

Redis is an in-memory data store, most often used as a cache in front of a web application.

Installation

On a Debian server:

sudo apt install redis-server

The one thing worth doing straight away is stopping it from eating all the machine’s memory.

sudo vi /etc/redis/redis.conf

If you’re using it purely as a cache, and depending on what your application expects, you can cap the memory and tell Redis to evict the least recently used keys when it hits the ceiling.

maxmemory 16gb
maxmemory-policy allkeys-lru