Introduction
Redis implements a two-way linked list containing an iterator. The basic function is a universal two-way linked list. The source code implementation is worth reading the following.Source File
Adlist. h adlist. cAnalysis
Here we will
ArticleDirectory
1. Use redis as a message queue
2. Use redis as the log collector
3. Store social relationships
4. Used as the cache Layer
5. About persistence
6. Problems with using MongoDB
Here, bump is the app
Redis is a key-value database; For redis, key is a string type, and value is only a binary string, redis does not care about its content;
Using different commands, redis decides to store values in a specific data structure;
For example, if you use
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
Redis 2.6.6 release
Author: chszs, reprinted with note.Author blog homepage: http://blog.csdn.net/chszs
Redis is a high-performance memory key-value database. The emergence of redis largely makes up for the shortage of key/value storage such as
Original article: http://antirez.com/post/redis-manifesto.html
1: redis is a DSL tool for operating data structures. It provides TCP-based protocols to operate on rich data structures.
2: redis is a memory database. It is precisely because of the
1. Storage Method
Memecache stores all data in the memory. After the power is down, the data cannot exceed the memory size.
Some redis instances are stored on the hard disk to ensure data persistence.
2. supported data types
Memcache
A major system fault occurred on Weibo a few days ago, and many technical friends are concerned about it. The reason for this is no more than James Hamilton's onThe first experience of James, design for failure, is the key to the success of all
RedisIs a key-value storage system. Similar to memcached, But it solves the problem that data is completely lost after power-off, and she supports more undefined value types. Besides string, it also supports lists (linked list), sets, and zsets.
Problems with traditional MySQL + memcached Architecture
MySQL is suitable for storing massive data. Many companies have used this architecture to load hotspot data to the cache through memcached to accelerate access. However, as the business data
Document directory
Template or inheritance?
New Solution-General Data operations and special basic database operations
Generalized Data Operations
Apsaradb for redis provides a series of C interfaces, which are easy to use. However, for some
Problems with traditional MySQL + memcached Architecture
MySQL is suitable for storing massive data. Many companies have used this architecture to load hotspot data to the cache through memcached to accelerate access. However, as the business data
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
RedisBuild an environment in Windows
From http://www.cnblogs.com/chenchunyong/archive/2013/04/17/Redis.html
1. What is redis?
Redis is a high-performance Key-value database that does not support any SQL statements. It supports more storage value
1. Obtain the Installation File
Wget http://download.redis.io/redis-stable.tar.gz
2. decompress the file
Tar xzvf redis-stable.tar.gz
3. Enter the Directory
CD redis-stable
4. Compile
Make
5. Installation
Make install
6. Set the
From: http://www.cfanz.cn /? C = article & A = read & id = 32677
Reference http://www.open-open.com/lib/view/open1351324403395.html
Spring http://www.open-open.com/lib/list/354Data redis implements a subscription/Release System
Spring
Redis has a major bottleneck when the memory size exceeds 50 GB. To solve this problem, I found some relevant information and found this open-source software. The function is very powerful, including the consistent hash algorithm of ketama of last.
Redis code structure 2 net, main, event
1. Network LibraryAnet. C and networking. C: These two files mainly implement network communication and interaction with the client.1.1 Anet. cThis file encapsulates basic network socket operations (TCP,
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