Why use redis
- Faster than other DB
REDIS is abbreviation of REmote DICtionary Server - Simple and organized data structure
Redis support strings, hashes, set, sorted set, list - Simple feature set comparing to other DB
In redis, there’s no triggers, data schema, FK constraints, Transaction rollback etc..
How to learn from redis.io/commands
In same bracket []
we have to use only single option not multiple options.
Why expiration is required?
Redis is memory based db and it origins from cache.
- Delete old cache
Guarantee data consistency between redis and traditional database (original data) - Prevent from running out of memory
Expiration is for caching!