Http://blog.csdn.net/yanghehong/article/details/6074472
Comprehensive but not detailed analysis: redis: under the hood
Redis string implementation: http://code.google.com/p/redis/wiki/HackingStrings
Redis event Library:
I learned about the redis key-value database after the holiday. By the way, I wrote some study notes to share with you, hoping to help anyone who wants to know about redis.
An environment for building redis learning notes
Redis Study Notes Data
Redis is a memory database that supports persistence. That is to say, redis often needs to synchronize data in the memory to the disk to ensure persistence. Redis supports two persistence Methods: snapshotting (snapshot) and append-only file (AOF.
Download the Windows version of redis, which contains 32-bit and 64-bit folders and other files. copy the files in the directory of 32-bit or 64-bit to D: \ redisfolder according to the system. Then, run the command to access the file and execute
Environment preparation
Redis (use the Windows version for testing, and the operating environment is recommended to use the Linux Version)
Servicestack. Redis-v3.00
Running the redis server on Windows for development and testing is
PHP Technology Exchange Group 170855791
PHP has multiple redis extensionsProgramI am using the phpredis Extension
First download the extension phpredis ,:Https://github.com/nicolasff/phpredis
After decompression, you can install the extension
This articleArticleRedis supports sorting list, set, and sorted set elements. The complete command format of the sort command is as follows:Sort key [by pattern] [limit start count] [get pattern] [ASC | DESC] [Alpha] [store dstkey]The following
Redis is a high-performance Key-value database. Because its read/write operations are performed in the memory, it can use up to 0.11 million set times per second and get more than 80 thousand times per second.
The installation process is listed
I recently practiced redis In the project. I have encountered and solved several problems in the process and recorded them.
Why redisOur project is an improvement to the original cache system. The application scenarios are Forum posts,
Redis common command set
Commands related to connection operations
Quit: disconnect)
Auth: Simple Password Authentication
Persistence
Save: synchronize and save data to the disk.
Bgsave: asynchronously saves data to the
Redis is short and concise, and the Swiss army knife in the system. I have studied its source code and gained a lot.
1: network framework
2: exquisite implementation of various data structures
3: Persistence
4: Copy
Network Framework
The redis
Apsaradb for redis is a powerful nosql database. Compared with memcached, apsaradb for redis provides richer data types, including string, hash, list, set, and sorted set. It also supports data persistence. The optical string type is more powerful
Commands related to connection operations
Quit: disconnect)
Auth: Simple Password Authentication
Persistence
Save: synchronize and save data to the disk.
Bgsave: asynchronously saves data to the disk.
Lastsave: returns the Unix timestamp
Several misunderstandings about redis
Http://timyang.net/data/redis-misunderstanding/
A major system fault occurred on Weibo a few days ago, and many technical friends are concerned about it. The reason is not as high as James Hamilton's on design
(1) test environment
CPU
Dualcore e5800 X2 3.2g
Memory
4G
OS
SuSE Linux Enterprise Server 11 (x86_64)
Client
Jedis
(2) Insert a single value
Insert:
Key = (1000000-10000051) vaue = (1000000-10000051)
Client thread
Insert volume
1
Data Type
As a key-value database, redis also provides ing between keys and values. However, in addition to common values or strings, The redis key value can also be one of the following forms:
L lists (list)
L Sets)
L sorted Sets)
L hashes (hash
Redis is a high-performance key-value database that uses memory as the primary storage, and data access is very fast. Of course, it also provides two mechanisms to support persistent data storage. unfortunately, the apsaradb for Redis project does
Simple Python Queue with Redis
Posted on June 3, 2012# Python # redis # nosql
The following article shows how to useRedis to build a simplemulti-producer, multi-consumer Queue with an interface similar to thepythonstandardlib queue. With this queue
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