Redis Basic Tutorial Details Reference: http://www.yiibai.com/redis/redis_quick_guide.html
Basic knowledge:
0. Redis Features: Redis is the abbreviation for Remote Dictionary Server (Redis). The Redis database is completely in memory and uses disk for persistence only. All Redis operations are atomic, which ensures that Redis servers accessed by two clients at the same time will get the updated values.
1. Redis Five types of data: string, hash, list, collection, ordered collection.
2. Jedis is a Java version of the client implementation of Redis, and each operation sends a request to redis-server. The Redis-server end is a single thread to handle client-side requests. To ensure efficiency, REDIS data is cached in memory. At the same time, Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and implements the Master-slave (master-Slave) synchronization on this basis. Redis supports master-slave synchronization. Data can be synchronized from the primary server to any number of slave servers, from the server to the primary server that is associated with other slave servers.
Problem: Comparison of Redis and Memcache
A: Redis has a persistence mechanism that can periodically persist the in-memory data to the hard disk, while the memcache is out of power.
Reference list:
1. Easy Tutorial Redis:http://www.yiibai.com/redis/redis_quick_guide.html
2.Jedis Operation Redis Use: http://www.cnblogs.com/liuling/p/2014-4-19-04.html
3.http://www.redis.cn/
Deep understanding of the Redis series