0. The difference between Redis and memcache
A, Redis can store objects other than string, such as List,hash, etc.
b, when the server is down, Redis will persist the memory data to disk, and Memcache will not
1. Redis Installation
A, RZ Redis.gz.tar
B, Tar decompression
c, make compile
D,./redis-server & Server Start-up
E, REDIS-CLI client startup
1) Notice: Note that the default startup Redis-server redis.conf will error,
Reason reference Redis has three ways to start: http://www.tuicool.com/articles/aQbQ3u
2) 3. After starting Redis server, SecureCRT enters REDIS-CLI, and the input continues to append ip:port display
Set the current session options-->terminal-->emulation-->terminal for Linux
2. redis.conf configuration file
Automatically save data on Redis
3, Redis deposit list and other complex numbers, data objects
If the list type is saved:
Deposit: Lpush technolegy zzu bbu CCU removed: Lrange technolegy 0 2
4. Redis Cluster
5. Discussion on Redis
5. Redis Learning Materials
Redis Command parameters: Redis Command Reference release 2.8
Redis Official website: http://www.redis.io/
Memcache Redis Cache Learning Notes