Redis Initial Practice
First, let's look at Redis
1. Introduction to Redis
Redis is completely open source, free of charge, complies with BSD protocol, and is a high-performance key-value database.
Redis and other key - value caching products have three features:
Redis supports data persistence, can save data in memory in disk, and can be loaded again when re ...
Added by andrewburgess on Sat, 08 Jun 2019 05:49:13 +0300
10 Minutes Quick Start Redis
Redis installation
Reprint: https://github.com/jaywcjlove/handbook
Official Compilation and Installation
$ wget http://download.redis.io/releases/redis-4.0.0.tar.gz
$ tar xzvf redis-4.0.0.tar.gz -C /usr/local/
$ cd /usr/local/redis-4.0.0
$ make
$ make test
$ make install
# The program will execute automatically:
# mkdir -p /usr/local/bin ...
Added by ashmo on Fri, 07 Jun 2019 03:13:41 +0300
Synchronize MySQL data to Redis using Alibaba Canal Incremental Subscription & Consumption Component
Synchronize MySQL data to Redis using Alibaba Canal Incremental Subscription & Consumption Component
background
Alibaba Incremental Subscription & Consumer Components https://github.com/alibaba/canal
In the early days, Alibaba B2B company had the business requirement of cross-room synchronization because of the dual-room deployment in ...
Added by brmcdani on Thu, 30 May 2019 00:04:33 +0300
Distributed locks based on Redis and zk?
What are the general ways to implement distributed locks?How do I design distributed locks using redis?Is it okay to use zk to design distributed locks?Which of these two distributed locks is more efficient?
(1) redis distributed lock
Officially known as the RedLock algorithm, it is an officially supported distributed lo ...
Added by gufmn on Wed, 29 May 2019 11:36:02 +0300
shiro project introduction
shiro project introduction
After the previous shiro integration project, the shiro function will be improved. The previous code will not be shown and introduced. For more information, please refer to the shiro integration project.Project code acquisition: https://github.com/pysasuke/s...
New function
User registration
Limit the number of login ...
Added by RJDavison on Mon, 27 May 2019 23:45:05 +0300
Implementation of message queue using Redis PUSH-POP mechanism
Readers can access this article on their personal website: Huanggwenwei - Interline: Using Redis PUSH-POP mechanism to achieve message queuing
background
In order to improve management efficiency, optimize work flow and team organization structure, more and more traditional industries have introduced the concept of SASS to standardize and upgra ...
Added by fingerprn on Tue, 21 May 2019 01:51:59 +0300
CentOS Builds redis-cluster Cluster
Preparations for Cluster Construction
Create redis-cluster directory under / usr/local
mkdir /usr/local/redis-cluster
Previously, if you installed a stand-alone version, you could copy the installed directory. Installation reference for stand-alone version
Copy the redis directory as a whole into redis-cluster and ...
Added by lookielookies on Mon, 20 May 2019 03:45:24 +0300
Construction of Redis Cluster
Construction of Redis Cluster
I. Redis Download, Installation, Startup (Single Example)
We installed Redis in the / opt directory and executed the following commands:
$ cd /opt
$ wget http://download.redis.io/releases/redis-4.0.9.tar.gz
$ tar zxvf redis-4.0.9.tar.gz
$ cd redis-4.0.9
$ make
Now that the installation is complete, le ...
Added by peerData on Sun, 19 May 2019 17:38:04 +0300
CentOS 7.2 Yum builds lamp
1. Close firewall and selinux after system installation
1. sestatus: Check selinux status; 2. getenforce view status; 3. Temporarily close selinux: setenforce 0 4. If you want to close permanently, you can modify the configuration file / etc/selinux/config and set SELINUX to disabled.
sudo vi /etc/sysconfig/selinux
SELINUX = disabled
Modify ...
Added by NiGHTFiRE on Sun, 19 May 2019 13:34:18 +0300
Turn redis on or off using the AOP+application.yaml configuration item
Scene description
-- Watch it today renren-security Source code, found that redis caches can be dynamically turned on/off in the configuration file:
renren:
redis:
open: false #Whether to turn on redis cache true Turn on false Close
If reren.redis.open=true, the data from the sys_config table will also be saved to redis
If reren.red ...
Added by xzazx on Sun, 19 May 2019 11:45:31 +0300