1 Getting Started
1.1) what is it
- Redis:REmote DIctionary Server
- Is completely open source free, written in C language, comply with the BSD protocol, is a high performance (key/value) distributed memory database, based on memory running and support persistent NoSQL database, is currently one of the most popular NoSQL database, also known as the data structure server
- Redis shares three characteristics with other key-value caching products
1 Redis supports persistent data, which can keep the data in memory in the disk, and can be loaded again for use when restarting
2 Redis not only supports simple key-value data, but also supports the storage of list, set, zset, hash and other data structures. 3 Redis supports data backup, that is, data backup in master-slave mode
1.2) can do
-
Memory storage and persistence: Redis supports asynchronous writing of data in memory to disk without affecting continued service
-
The operation of fetching the latest N data, for example, you can put the ids of the latest 10 comments in the Redis List
-
Emulating functions like HttpSession that require an expiration time
-
Publish and subscribe messaging systems
-
Timer, counter
1.3) go under
- redis.io/
- www.redis.cn/
1.4) how to play
- Data types, basic operations, and configurations
- Persistence and replication, RDB/AOF
- Control of transactions
- copy