Skip to content

Instantly share code, notes, and snippets.

@OndrejValenta
Last active July 15, 2024 14:31
Show Gist options
  • Save OndrejValenta/04ea4f17939a8fcd276fc8f6fbe9c286 to your computer and use it in GitHub Desktop.
Save OndrejValenta/04ea4f17939a8fcd276fc8f6fbe9c286 to your computer and use it in GitHub Desktop.

Based on this article

sudo apt-get update
sudo apt-get upgrade

sudo apt-get install redis-server
sudo systemctl enable redis-server.service

Update Redis configuration file redis.conf

sudo nano /etc/redis/redis.conf

and set this values

maxmemory 256mb
maxmemory-policy allkeys-lru

and restart the service

sudo systemctl restart redis-server.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment