Install redis
A Dian Profile
Redis memory is a data structure stored in the open, it can be used as a database, cache and the message broker (message broker). It supports a string (strings) Dian Dian hash list (hashes) (lists) Dian set (sets) supported Dian Sort range set of queries (sorted sets) Dian bitmaps (bitmaps) Dian hyperloglogs Dian support radius inquiry map index (geospatial indexes) and streams (streams) and other data structures. Redis built-in replication, lua script, LRU elimination mechanism, affairs as well as different levels of persistent hard disk and other features, and by redis Sentinel (sentinel) and support automation partitions redis cluster (cluster) to provide high availability.
Redis data type supported in atomic operations, such as additional characters in the string, the hash (hash) value for the increment operation, a push element is added to a list (List), a collection (set) set for the intersection and Dian Dian difference set to run in the ordered set (sorted set) element in obtaining the highest ranking.
To obtain excellent performance, Redis. According to your usage scenario, you can export data set based on the work memory via the data set intervals to the hard disk, or appended to each command to the persistent log data. If you just need a feature-rich networking Dian memory cache, you can choose to disable persistent. redis also supports configuration of simple master asynchronous replication. the first synchronization very fast and non-blocking. in the network cut time-sharing, automatic connection, part resynchronization.
Two Dian download linux platform compiler installation
1. Download
wget http://download.redis.io/releases/redis-5.0.7.tar.gz
2. Extract compilation
takes xzf redis-5.0.7.tar.gz
cd-repeat 5.0.7
make
3. Start redis service
src/redis-server
4. Test client redis
src/redis-cli
windows平台的安装可以参看这篇文章
学习资料: