The editor can't even paste the picture directly, but I like it. Had to make the post directly into the picture.Use the Linux command as follows, for lazy classmates to copy and paste directly1. Download the Redis installation package wget
The client uses the latest Jedis 2.7 1. Maven dependencies: redis.clients jedis 2.7.3 2. add Spring configuration classpath: Connect-redis.properties 3. Add connect-redis.properties configuration file There are 6 nodes configured here
Redis Data Backup and recoveryPersistence ofFirst, RDB mode (default)The RDB approach is persisted through snapshots (snapshotting), and Redis automatically snaps all of the data in memory and stores it on the hard disk when certain conditions are
After 1.redis of cached data fills up with physical memory, Redis can persist some long unused (hit) data to the hard disk. While Redis periodically persists data to the hard disk, the cache data is still desirable after the server restarts. The
1, first of all, we have to write a basic dockerfileIn any directory$ VI DockerfileFill in the contents as follows:From ubuntu:14.04RUN apt-get UpdateRUN apt-get-y Install Redis-serverEXPOSE 6379entrypoint ["/usr/bin/redis-server"]2. Build and run
Lua to Redis conversion table.
Lua number, Redis integer reply (the number is converted to an integer)
Lua string--Redis bulk reply
Lua table (array), Redis Multi Bulk reply (truncated to the first nil inside the LUA array if any)
The Redis backup feature is very simple to use. Configuring a master-slave backup mechanism makes the Redis slave server exactly the same as the primary server. The following is a very important description of Redis backup.Redis uses asynchronous
The most important object in Stackexchange.redis is the Connectionmultiplexer class, which exists in the Stackexchange.redis namespace.This class hides the operation details of the Redis service, and the Connectionmultiplexer class does a lot of
"Redis bit Operation "1.getbit Key Offsetkeygets the bitwise (BIT) on the stored string value for the specified offset.Returned when the offset length of the string value is greater than or key does not exist 0 .2.setbit key Offset valuekeySets or
Redis Use detailed tutorialsFirst, the basic part of Redis:1, Redis introduction and installation than MySQL faster than 10 times timesApplications for Redis ****************1. Take the latest N data operation2. Leaderboard application, top N
"Redis Licensing Action "AUTH Passwordrequirepass CONFIG SET requirepass password You can use a password to protect the Redis server by setting the value of the item in the configuration file (using the command).If password protection is turned on,
BgrewriteaofAsynchronously rewrite the append-only fileBGSAVEAsynchronously save the dataset to diskCLIENT KILL [Ip:port] [ID Client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no]Kill the connection of a clientCLIENT LISTGet the list
Redis optimized configuration and redis.conf description time the-Ten- in on: on: -CSDN Blog Original http://blog.csdn.net/luozhonghua2014/article/details/40568707Topic Redis1. redis.conf configuration parameters: #是否作为守护进程运行daemonize yes# Run as a
Zadd key score member [score member ...]ADD one or more members to a sorted set, or update its score if it already exists127.0.0.1:6379> zadd foo 1 One (integer) 1127.0.0.1:6379> zadd foo 2 (integer) 1127.0.0.1:6379> zadd foo 3 thre E (integer) 1127.
blpop key [key ...] timeoutRemove and get the first element in a list, or block until one is availableMore:http://redis.io/commands/blpop, http://www.redis.cn/commands/blpop.htmlBrpop key [key ...] timeoutRemove and get the last element in a list,
According to a number of tests organized a plan:1. Redis Performance
Some simple tests for Redis are for informational purposes only:
Test environment: Redhat6.2, Xeon E5520 (4-core) *2/8g,1000m NIC
Redis version: 2.6.9
The
Configuring Master-slave replication
Establish 6380 63,812 folders (two slave servers) from a folder, such as/usr/local/slaves/
Copy redis.conf to the two folders you just created
Modify the redis.conf in the
Port 6
About RedisRedis is an advanced Key-value database. It is similar to memcached, but the data can be persisted and the supported data types are rich. There are 5 types of strings, linked lists, hashes, collections, and ordered collections. Support
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.