Official website: Redis is a open source advanced Key-value store. It is often referred to as a data structure server since keys can contain strings,hashes,lists, sets and sorted sets.
Redis is a key-value storage system. The value types it supports include String,list,set (collection), Zset (ordered collection). To ensure efficiency, REDIS data is cached in memory, which periodically writes updated data to disk or writes modifications to the appended record file.
Applications for Redis
Operations that take the latest n data
Applications that require a precise setting of expiration time
Counter Application
Uniq operation, data weight
Real-time system, anti-spam system
Pub/sub Building a real-time messaging system
Building a queue system
Cache
Redis Download: Official address
Compile and install:
TAR-ZXVF Redis-3.0.3.tar. gzcd redis-3.0.3&& make install
Start Redis Service
Go to the Redis directory and enter "./src/redis-server redis.conf" to start the Redis service, so open the service take a session
Background boot: Modify redis.conf, change daemonize to "yes"
Default port: 6379
Enter the client
In a new window, go to the Redis directory, enter "./src/redis-cli", enter the client
Stop Redis Service
1. Use the shutdown command in the client
2. Pkill command using Linux (Pkill redis-server)
Reference Documentation:
Configuration file Parameter description
Redis Download and installation deployment