Redis Introduction
Remote DIctionary server, which is completely open source free, written in C, and following the BSD protocol, is a high-performance (KV) distributed memory database that runs on memory and supports persistent NoSQL databases, is
The previous company in the development phase of the Redis has been the formal environment, the recent boss let me in a local area network for the development phase of the Redis connection use, build process also encountered some problems,
first, the MyBatis cache
Like most ORM layer frameworks, MyBatis naturally provides support for first-level caching and level two caching. This is the role and definition of the first-level cache and the level two cache.
1, the first cache is the
Recently read Huangjianhong's "Redis Design and implementation", read the first part, it is the introduction of the bottom-up approach. Starting from the lowest data structure, the data structure used is introduced, and then the database is formed.
1. Install gcc
Redis is deployed on a Linux system in a real production environment, so start with a Linux
Redis installation requires GCC, first ensure that GCC is installed on Linux
Enter GCC, prompting for no command, stating that GCC is not
Affairs
Ømulti,exec action: Start and end tag of transaction
N executes the multi command, Redis feedback OK indicates the start of the transaction, executes the EXEC command, ends the transaction, and begins the sequential execution of the
What is AOF?
There is an option called AppendOnly in the Redis configuration file that can write yes or No. This option is responsible for whether to open the aof log switch. AOF log, you can simply understand the same thing as MySQL Binlog, the
Redis Cluster Add node
1: Start the node that needs to be added first
cd/usr/local/cluster/mkdir 7006cp/usr/local/cluster/redis.conf/usr/local/cluster/7006/cd/usr/local/cluster/7006/VI redis.conf# The value of the port parameter in
The first step is to modify the configuration file
############################# EVENT NOTIFICATION ############################### Redis can notify Pub/sub clients about events happening in the key space.# This feature was documented at
Six features of Redis
L Strings
L HASHS
L Lists
L Sets
L Sorted Sets
L PUB/SUB Application Scenarios for Redis features Strings
The Strings data structure is a simple key-value type, and value is not only a string, it can also be a number. Common
To turn off the firewall:Systemctl Stop Firewalld.service #停止firewallSystemctl Disable Firewalld.service #禁止firewall开机启动Firewall-cmd--state #查看默认防火墙状态 (show notrunning after turn off, show running when turned on)To Configure the compilation
11 Types of Redis Web application Scenarios2015-04-07 10:46 Anonymous Gray's blog size: T | T
Some Redis primitive commands, such as Lpush, LTrim, and Lrem, can be used to help developers accomplish the tasks they need--tasks that are difficult or
In general, Redis's Zset provides a wealth of functionality that can form many applications.
In Redis, there are many features that are available.
Ordered set (Sorted set) zadd zrem zcard zcount zscore zincrby zrange zrevrange zrangebyscore
Redis Command
Redis commands are used to perform operations on the Redis service.
A Redis client is required to execute commands on the Redis service. The Redis client is in the Redis installation package that we downloaded earlier. Grammar
The
To make a platform, the design requires the ability to read and write 10,000 times per second in a database of 80.01 billion records.
I chose a redis cluster. My approach is implemented in conjunction with the documentation provided by the Great God
Like the reason for MySQL master-slave replication, Redis reads and writes are particularly fast, but it can also produce a particularly high read pressure situation. In order to share the read pressure, Redis supports master-slave replication, and
Spring Data Redis single node and cluster configuration and redistemplate usage
tags (space delimited): Spring-data
Using Springdata makes it easier for us to operate on relational and non-relational databases, encapsulating common code and making
Now the project uses Redis, which greatly improves the efficiency of data extraction, but if the logic is handled carelessly, it will give itself a pit
1. Completely rely on REDIS data provided in the background, when the Redis occupancy rate is
* Features * Key-value
Java map:string value = Map.get ("key") Python dict:dictionary["key"] value ...
BitMaps Bitmap bron Filter Hyperloglog Ultra Small Memory unique value Count GEO Geographic information positioning speed fast
10w OPS is the
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