Back to Notes

Redis and Docker

Redis (REmote DIctionary Server) is an open-source, in-memory database and cache that's used for applications that need low data latency.

Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

docker-compose.yaml for Redis:

Run docker-compose up -d and connect using docker exec -it redis-local redis-cli

For stop the container and delete the data in ./data run docker-compose down

Resources