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 have been paying attention to new news in the nosql field for a long time. I was listening to my colleagues a few days ago saying that redis can be used for data storage in our group. I hope my colleagues can check that there is nothing to do at
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
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
Redis is a high-performance Key-value database. The emergence of redis largely compensates for the shortage of keyValue storage such as memcached, and can play a very good complementary role in relational databases. It provides python, Ruby,
I. Install the redis server first
Redis is a high-performance Key-value database. The emergence of redis largely compensates for the shortage of keyValue storage such as memcached, and can play a very good complementary role in relational
Next, compile phpredis to PhP extension,
For more information, see http://skirt.sinaapp.com /? P = 110
Home page of The phpredis project: https://github.com/owlient/phpredisto download the latestCodeIn fact, it has not been updated for more
About nosql
Before introducing redis, I 'd like to know nosql, that is, not only SQL, which is a non-relational data storage and key/value pair storage. Existing nosql dB products: redis/MongoDB/memcached/hbase/Cassandra/Tokyo
Document directory
How is data stored? ,
Where can data be stored?
How to export data?
How to restore Data?
Redis is a key-value database that supports multiple data types.
This section describes how to export data from redis.
How is data
Redis
Zadd key score member [[score member] [score member]...]
Set one or moreMemberElements andScoreValues are added to the sorted set.Key.
IfMemberIf it is already a member of the sorted set, update thisMemberOfScoreValue, and re-insert
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
Learning any new knowledge is a step-by-step process. From Initial ignorance to simple familiarity, and then suddenly enlightened, the results are ecstatic and will be happy for a long time.Similar to redis + MySQL and memory + Hard Disk
First, see
Redis is an ongoing open-source key-value database project, and the author is antirez. Compared with general key-value databases, redis has the support for linked lists, sets, sortsets, and other composite structures for values in key-value pairs.
(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. twemproxy release E
When we have a large number of redis or memcached instances, we can only use some data distribution algorithms (such as consistent hashing) on the client side to implement Cluster Storage features. Although redisRedis cluster
Document directory
1. What is redis?
2. redis cannot be faster than memcache
3. data stored in a single redis instance must be smaller than the physical memory.
4. redis's Vm implementation is repetitive.
5. Use redis in get/set mode
6. Use
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
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