Redis is a key-value storage system. Like memcached, it supports a relatively larger number of stored value types, including string (string), list (linked list), set (set), and Zset (ordered set). These data types support Push/pop, Add/remove and intersection-set and differential sets and richer operations, and these operations are atomic. On this basis, Redis supports a variety of different ways of ordering. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to the disk or writes the modification operation to the appended record file, and on this basis, it realizes the Master-slave (master-slave) synchronization. Redis is a high-performance key-value database. The emergence of Redis, to a large extent, compensates for the shortage of such keyvalue storage in memcached, and in some cases can complement the relational database well.
Redis three main features inherited from its many competitions:
The Redis database is fully in memory and uses the disk for persistence only.
Redis has a richer set of data types than many key-value data stores.
Redis can copy data to any number of servers. Redis Advantage
Unusually fast: The Redis is very fast and can perform about 110,000 episodes per second, about 81000 + records per second.
Support for rich data types: Redis support Most developers already know like lists, collections, ordered collections, hash data types. This makes it very easy to solve a wide variety of problems because we know which problems can be handled better by its data type.
Operations are atomic: All Redis operations are atomic, which guarantees that if two clients simultaneously access the Redis server, the updated value will be obtained.
Multifunction utility: Redis is a versatile tool that can be used in multiple applications such as caching, messaging, queue use (Redis native support publish/subscribe), any transient data, application, such as Web application sessions, Web page hit count, etc.