Redis listens to a TCP port or UNIX socket to receive connections from clients. After a connection is established, redis performs the following operations internally:
First, the client socket is set to non-blocking mode because redis
I searched an article todayArticleNosql solution: Evaluation and comparison: MongoDB vs redis, Tokyo cabinet, and Berkeley dB. It is a Chinese translation version, which is well written by the author, but it takes several hours to insert 0.2 billion
Many users are familiar with redis list, hash, set, string, and other operations,
This section briefly introduces the dynamic parameter modification, master-slave switchover, persistent settings, and system information monitoring.
The redis
Requirements:
If all data is saved to a redis instance, all services are affected if the server is damaged;
The memory size of a single apsaradb for redis instance should not exceed 1 GB. However, if the memory size is not modified, the data cannot
Redis performance test
Redis performance testing is achieved by executing multiple commands at the same time.Syntax
The basic commands for redis performance testing are as follows:
redis-benchmark [option] [option value]Instance
The following
Redis: What is redis:
Remote dictionary server (Remote dictionary server)
It is completely open-source and free. It is written in C language and complies with the BSD Protocol. It is a high-performance (key-value) distributed memory database.
Nosql
Redis Basic Data Type
Redis currently supports five data types:
String (string)
List)
Hash (dictionary)
Set)
Sorted set)
The following describes the five data types and their corresponding operation commands.
String (string)
String is a simple
Redis persistence
Although redis is a memory-based storage system, it supports the persistence of memory data and provides two main persistence policies: RDB snapshot and aof log.
Redis RDB Snapshot
Redis supports the persistence mechanism of saving
Redis is a KV database with a complete set of memory. It does not have some data in the disk and some data in the memory. Therefore, it is very important to estimate and save memory in advance. this article describes how to estimate the memory
Redis command Chinese manual
I. Base
Del
Delete a key or a series of keys; del key1 key2 key3 key4
Type
Returns the Data Type of a key element (none: nonexistent, string: character, list, set, zset, hash)
Keys
The redis. conf configuration options are as follows:Whether daemonize is run by a later process. The default value is no.If pidfile is run by a later process, you must specify a PID. The default value is/var/run/redis. PID.Bind Host IP address.
A few months after VM started to work my feeling about it startedBe not very good. I stated in the blog, and privately on IRC,Especially talking with Pieter, that VM was not the way to go forFuture of redis, and that the new path we were taking
A single redis instance may encounter single point of failure. To solve the high availability of redis, master-slave replication should be the second step of learning. The purpose of this article is to bring one master with one slave, and the slave
An error is reported when 2.6.14 is compiled on Redhat as 5. Therefore, the following example shows an error message based on 2.4.18:
[Root @ As5 SRC] # uname-Linux as5.cooly. Slum 2.6.18-8. el5xen #1 SMP Fri Jan 26 14:42:21 est 2007 i686 i686 i386
Note: After Reading redis source code analysis-protocol, I found that the author skipped some simple points, but these simple points are exactly what I didn't understand, so I made some supplements, take notes.
Version: 2.04.
1. Requests format
*
Redis is a lightweight key-value data storage system. Compared with memcache/memcached, redis provides more redundancy and transfers stored data to disk files, so that it can be restored at the next startup. Redis also provides a collection, list,
Redis
Official Website: http://redis.ioIntroduction
Redis is a key-value storage system. Similar to memcached, memcached supports more storage value types, including string, list, set, and zset ). These data types support push/pop, Add/Remove,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service