Redis Foundation, advanced features and performance tuning
Kelgon attention 2017.02.28 16:22 words 12597 read 16333 comments 5 like 154 appreciate 2
This paper will start from the basic characteristics of redis, through the description of the REDIS data structure and the main command of the Redis basic capabilities of
Tags: keyword--synchronous loading targe out technology OSS based on1. The Redis recovery mechanism
If only AOF is configured, the AOF file recovery data is loaded when the reboot is restarted;
If both RDB and AOF are configured, the boot is only loaded with AOF file recovery data;
If only the RDB is configured, startup is the load dump file to recover the data.
2. Recovering data from AoF1 Note the following configurationyesdir
Redis cluster _ 3. redis master-slave automatic switch Sentinel, redis_3.redisRedis SentinelSentinel (Sentinel) is a tool used to monitor the Master Status in redis clusters. It has been integrated into redis2.4 + versions.I. Role of Sentinel:1): Master status detection2) If the Master node is abnormal, the Master-Slave switch will be performed, and one of the Sl
Redis provides a lifetime for the key, and the lifetime is permanent when no life time is specified. Redis will automatically delete this key when the time expires. You can use the expire command, the time unit seconds, if a key is set to a limited lifetime, then the set key will be reset when the value is again set to permanent:SET Session:captcha sd2aEXPIRE Session:captcha 600
Cancels the lifetime, the k
1 Series Catalogue
The Distributed Transaction series (opening) raises questions and research processes
Distributed Transaction Series (1.1) Spring transaction manager Platformtransactionmanager Source analysis
Distributed Transaction Series (1.2) Spring Transactio
ACID, refers to the four characteristics of a transaction in a database management system (DBMS): atomicity (atomicity), consistency (consistency), isolation (isolation, also known as independence), persistence (durability).
In a database system, a transaction refers to a complete logical process consisting of a series of database operations. For example, bank transfer, deduction of the amount from the orig
Spring transaction management and Spring transaction managementI. Transaction overview transaction management is an essential technology for enterprise-level application development. It is used to ensure data integrity and consistency.A transaction is a series of actions, wh
Transaction Processing and concurrency control, transaction processing Concurrency Control
What is a transaction?
Is a mechanism, an operation sequence, it contains a group of database operation commands, and all the commands as a whole, together to submit or cancel the operation request to the system. It consists of one or more SQL statements that complete a rel
parameters ' num ' and ' value ' is exchanged for a bit, the CLI is lrem queuename 0 ' string '. Here's 0 o'clock all the meaning. But the Redis class, the control and the string swapped.· Zadd: The order of score and value was not carefully reversed when implemented, then someone used it, that's all.· The order of Setex:time and value is reversed.. Pool: Connection PoolingImportRedis R= Redis. Strictredis
This document provides a brief introduction to using the Python version of Redis client redis-py to connect Redis and perform setup and acquisition of Redis binary data.DescriptionCommands such as set,get,setnx,append can also be used to set binary data.Because Redis's own client r
Affairs
Ømulti,exec action: Start and end tag of transaction
N executes the multi command, Redis feedback OK indicates the start of the transaction, executes the EXEC command, ends the transaction, and begins the sequential execution of the operation in the transaction.
power failure or other problems.2. config. C is used to put the properties read from the configuration file redis. conf in the configuration file into the server object through a program.3. operations related to redis memory database in db. C.4. multi. C is used for transaction processing.5. RDB. C for redis local dat
Spring transaction management and Spring transaction management
Transaction introduction:Transaction Management is an essential technology in enterprise application development. It is used to ensure data integrity and consistency.Transactions are a series of actions, which are considered as a separate unit of work. Either all these actions are completed or all of
Spring provides flexible and convenient transaction management capabilities, but these functions are based on the transaction mechanism of the underlying database itself. To gain insight into the transaction management and configuration of spring, it is necessary to learn the basics of database transactions first.What is a database
Redis (4) for beginners-Sort Redis cache and redis
Before implementing the cache sorting function, you must first clarify the rationality of this function. Now that you can sort data in the database, why do you need to put the sorting function in the cache? The following two reasons are briefly summarized: first, sorting increases the load on the database and is
. Pipeline Redis-py The default is to create each request (Connection pool request connection) and disconnect (return connection pool) One connection operation, if you want to specify more than one command in a single request, you can use Pipline to implement a single request to specify multiple commands, and by default Pipline is an atomic operation. #!/usr/bin/env python
#-*-coding:utf-8-*-
import redis
multiple commands at once, send EXEC commands to queue caches before they are sent, end transactions, perform transactional operations after receiving the EXEC command, and if a command fails, other commands can continue to execute, and during a transaction execution, Requests submitted by other clients are not inserted into the list of commands executed by the transaction.Three stages of a business experience
Start
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.