Redis is an in-memory data store that keeps its entire data set in a memory and uses disk space only as a secondary persistent storage. Therefore, Redis can provide very fast read and write operations. The catch is that the size of the Redis data set cannot be higher than the amount of memory. The other features of Redis include:
- Support for complex data types
- Multiple persistence mechanisms
- Master-slave replication
- Implementation of the publish/subscribe messaging pattern
These features are described in the following subsections.
Supported data types
Each value stored by Redis has a key. Both keys and values are binary safe, which means that the key or the stored value can be either a string or the content of a binary file. However, Redis is ...