SDS (Simple dynamic string) is the Redis-bottom string representation, which has the function of string-object and substitution char*. Value types in a database include strings, hash tables, lists, collections, and ordered collections, but key types
Redis data type:
Redis supports five basic data types: string (string), hash (hash), list (listing), set (set), and Zset (ordered collection).1.string (String): String type is the most basic data type of Redis, and a key can store 512MB maximum.The
I study Redis or because I want to know more about the usage and architecture of Redis this series will start with how to use Redis to cut in, followed by the data structure of REDIS, this column is all in the MAC environment to explain
Redis's
To connect the Redis cache steps via the Jedis client:
1. Add Jar Package:
POM Coordinates:
redis.clients
jedis
2.7.0
The jar package is as follows: Commons-pool2-2.3.jar Jedis-2.7.0.jar2. Single Instance connection
To connect the Redis service
Transferred from: http://blog.csdn.net/gebitan505/article/details/17076333
1. Access to Redis source code
Http://redis.io
2. Unzip, set permissions
3.make & make install (optional, if install is executed, REDIS-SERVER,REDIS-CLI will be generated
second, disaster recovery simulation
Since persistent data is used for data recovery after a reboot, it is very necessary to perform such a disaster recovery simulation. It is said that if the data is to be persisted and stability is to be ensured,
When the client connects to the server, the client can send a command request to the server.
To send a command request from the client to the command to be processed by the server and return the result to the client, the process has the following
Redis uses its own implementation of the event separator, high efficiency, the internal use of non-blocking execution mode, throughput capacity is relatively large.
However, because the general memory operation is simple access operation, the
Holiday over, hurry to update the east, the recent project has been on the line stage, daily overtime debugging optimization module function, resulting in a few days back home is already midnight. Okay, here we are.
some small summaries of Redis
First, preface
The select in the database is the most frequently used, and the basic is the same every time, and the update, delete, insert use frequency does not have a select high, and each time basically is different. In order to reduce the
Micro-blogging function Analysis
Uniqueset class
API
function
Implementation Principle
Uniqueset (client, key)
Sets the client and key for a unique collection.
Is_include (Element)
Set typeTo add an element to an unordered collection:sadd KEY VALUE1 VALUE2 VALUE3 Example: (Sadd my_set1 a b c D D c s a)To get the elements of an unordered collection:smembers KEY Example: (Smembers my_set1)Results:1) "C"2) "S"3) "A"4) "D"5) "B"To
First step: TAR-ZXVF redis-4.0.10.tar.gzPart II: CD redis-4.0.10 directory perform make compilationResult Error: Reason: Need to rely on three packagesFIX: Install in sequence: Yum install gccYum Install gcc-c++Yum install TCLMake and error
Adding a Redis cache using Springboot needs to be introduced in the Pom file org.springframework.boot spring-boot-starter-cache org.springframework.boot spring-boot-starter-redis 1.4.3.RELEASEOur support for adding the cache
about RedisRedis is a fully open source free and is a high-performance Key-value database.Redis and other Key-value cache products have the following three features:
Redis supports data persistence, which saves data in memory on disk and
The original application is: 'https://www.cnblogs.com/koal/p/5484916.html`
First quote Baidu Encyclopedia of a paragraph, specific to the encyclopedia to see it.
Redis is an open source API that is written in ANSI C, supports the web,
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