Redis is an in-memory data store used for caching, sessions, and message queues.
Install
apt update
apt install redis-server -yConfigure
Edit /etc/redis/redis.conf:
# Bind to localhost only
bind 127.0.0.1 ::1
# Set a password
requirepass YourSecurePassword
# Set max memory
maxmemory 256mb
maxmemory-policy allkeys-lruStart
systemctl restart redis
systemctl enable redisTest
redis-cli
AUTH YourSecurePassword
PING
SET hello world
GET hello