Look at the main parts of App.js first.
Io.sockets.on (' Connection ', function (socket) {var Credis = redis.createclient ();
Credis.auth (' Chenqiguo ');
Subscribe to a channel Redis link var subscribe = redis.createclient ();
First, make a list of installation steps:
1. Mount the installation package redis-3.0.6.tar.gz to the system root directory with WINSCP
2. Decompression: Tar zvxf redis-3.2.1.tar.gz
3. Access to directory: CD redis-3.2.1
4. Compile: Make
5. Enter
First, overview:
A string type is the most basic type of data storage in Redis, and it is binary safe in Redis, which means that the type can accept data in any format, such as JPEG image data or JSON object description information. The value of
The official download address is: Http://redis.io/download
As you can see in the Win64 column, Redis originally had no Windows version, and the Windows version is the Microsoft Open Tech Team
A github link address is given:
Copyright NOTICE: This article is the original article, without the owner's permission to reprint.
Directory (?) [+]String [HTML]View plain copy 1, String common commands: In addition to operations such as GET, set, INCR, Decr mget, Redis also
installing the JDK and configuring environment variables
1. Download JDK
2. Decompression
Tar xzf jdk-7u79-linux-x64.tar.gz
3. Configure environment variables (reboot required after configuration is complete)
Open/etc/profile with a text
1 release the comment of cluster-enabled Yes in Redis.config
2 Copy redis.conf files
Modify Port: 6380 6381 6382
3 Start Redis Service separately
4 using the Redis Client command: Cluster meet IP Port command to create a cluster
5 Using the Redis
Redis offers two persistence modes, RDB and aof; unlike an RDB, aof can completely record an entire database, unlike an RDB that is just a snapshot of a database at a time;
So why does the aof pattern completely record the entire database?
Exception Description:
Redis.clients.jedis.exceptions.JedisConnectionException:Could not get a resource from the pool at
Redis.clients.util.Pool.getResource (pool.java:22) at
Com.derbysoft.jredis.longkeytest.BorrowObject.run ( borrowobject.java:2
Currently Redis supports two persistence modes, one is snapshotting (snapshot) and the other is Append-only file (AOF).Snapshotting (snapshot): The default persistence mode, which is to write in-memory data to a binary file in a snapshot (the
Redis is a single-threaded operation, and a slow execution, which allows for a large number of subsequent execution delays, greatly reduces throughput. Recording, querying, and monitoring redis slow execution is significant. Redis's slowlog are only
MemcachedMemcached is a high-performance distributed memory object caching system for dynamic Web applications to mitigate database load by caching data and objects in memory to reduce the number of times a database is read, thus increasing the
MemcacheMemcache is a high-performance distributed memory object caching system that is primarily used to cache data queried from the MySQL database, reducing the pressure on the MySQL database.Memcache Workflow:When a user occurs a dynamic request,
Project git URL: https://github.com/David-BIQI/manage.git (project using newer springboot2.0 and JDK8)Referenced code specification: Https://github.com/xwjie/PLMCodeTemplate.git (This is a set of code specifications can be landed, followed by the
Redis is a database of key-value structures, and the format of value can be String,set (), List,map collection (that is, Python dict), sorted set (ordered collection)1. Connect to Redis DatabaseDescription Episode: Redis and Strictredis, the latter
In Spring Data Redis 1.x , we might write such a redisconfig class in the project:@Configuration @enablecaching Public classRedisconfig {@SuppressWarnings ({"Rawtypes", "unchecked"}) @Bean (name= "Redistemplate") Publicredistemplate
I. When using the Reddis cache, if at the same time, 10,000 accesses, then there will be 10,000 times access to the database so it will be a huge pressure on the database, it is necessary to use the thread1. Method body Lock (advantages, protection
1.RedisdesktopHTTPS://redisdesktop.com/download2. Download the Windows version and install itParameters for processing RedisAccording to one of the blogs above took the automatic start of redis dispositionThe parameter file also becomes/etc/redis/637
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