sudo add-apt-repository ppa:chris-lea/redis-server
sudo apt-get update
sudo apt-get install redis-server
redis-cli
CONFIG SET dir /tmp
CONFIG SET dbfilename temp.rdb
/etc/redis/redis.conf
dir /tmp
maxmemory 32mb
maxmemory-policy volatile-lru
# Comment this line to disable saving
#save 900
#save 300 10
#save 60 10000
stop-writes-on-bgsave-error no
service redis-server restart