Redis 31: actual combat: redis cluster mode

Redis Cluster is a Redis Cluster scheme launched by redis version 3.0. It distributes data in different service areas to reduce the system's dependence on a single master node and greatly improve the read-write performance of redis services. Redis divides all data into 16384 slots, and each node is responsible for a part of the slots. When a r ...

Added by ctoshack on Wed, 19 Jan 2022 09:23:41 +0200

Shang Silicon Valley Redis learning notes -- Redis second kill case

1, Resolve transaction operations for counters and personnel records 2, Redis transaction - second kill concurrency simulation Use tool ab to simulate the test 1. Networking: Yum install httpd tools 2. No network (1) Enter cd /run/media/root/CentOS 7 x86_64/Packages (the path is different from centos6) (2) Sequential installation apr-1. ...

Added by etsauer on Tue, 18 Jan 2022 16:36:14 +0200

Project06_ Redis + springboot + Vue cli + docker = = = > email login + SMS login + alipay payment + user points ranking

1, Project environment Front end technology stack: Vue-CliFront end software: WebStorm 2020.3Front end style: BootstrapBack end technology stack: SpringBootBack end software: IntelliJ IEDA2019JavaJDK: 1.8Server: Alibaba cloud Centos 7Others: MyBatis, Redis, MySql, Docker, Shiro 2, Project demonstration Project source code: shoppingProject01_ ...

Added by emcb_php on Tue, 18 Jan 2022 14:51:41 +0200

Implementation principle of HashMap (just read this article)

HashMap is a collection container that senior java engineers must be proficient in. Its importance is almost equal to the importance of Volatile in concurrent programming (visibility and order).Through the detailed explanation of graphic source code, this article deeply analyzes the important kernel knowledge of HashMap, which is easy to read, ...

Added by pietbez on Mon, 17 Jan 2022 20:29:41 +0200

Integrating spring security, spring boot and redis, jwt realizes the function of separate login authentication and picture verification code at the front and back ends

Integrating spring security, spring boot and redis, jwt realizes the function of separate login authentication and picture verification code at the front and back ends First, we need to understand the general implementation process of the spring security filter chain: That is, when a user initiates a request, he will enter the Security filter ...

Added by Kevin3374 on Mon, 17 Jan 2022 15:33:09 +0200

Redis knowledge summary

Five data types key creation View all key s in the current library keys * Determine whether a key exists exists key View the type of key type key Delete key del key unlink key --Asynchronous deletion Set the expiration time of the key expire key 10 See how many seconds are left to expire ttl key ---1 Means never ...

Added by emehrkay on Mon, 17 Jan 2022 10:12:17 +0200

Detailed explanation of operation commands of five data types of redis

redis basic operation commands 1. Switch database select # redis has 16 databases by default, and the 0 database is used by default # select database sequence 127.0.0.1:6379> select 2 #Switch to the second database OK 127.0.0.1:6379[2]> DBSIZE #View data size (integer) 0 127.0.0.1:6379[2]> set ss 123 OK 127.0.0.1:6379[2]> DBSIZE ...

Added by jase01 on Mon, 17 Jan 2022 08:05:48 +0200

redis entry to mastery - basic data type String

1, String String is the most basic type of redis. A key corresponds to a value. String type can contain any data, including ordinary text data, pictures, video, audio, compressed files, etc. String type is the most basic data type of redis. The maximum string value in a redis is 512M. 1.1 SET: set value for string 1.1.1 command format S ...

Added by jervo on Mon, 17 Jan 2022 01:17:29 +0200

Three special data types for Redis introduction

geospatial geographic location Location of friends, nearby people, taxi distance calculation Redis's Geo is in redis3 Version 2 was launched. This function can calculate the geographical location information, the distance between the two places and the people within a few miles. You can query some test data: http://www.jsons.cn/lngcodeinfo/0 ...

Added by binujayaraj on Sun, 16 Jan 2022 22:48:36 +0200

01 redis core data structure and high performance principle

Important thing to say: every word is knocked by pickup hand. I hope you can read and understand pickup's thoughts when writing a blog word by word. I hope you have something to gain, thank you! This is the first article about redis, because redis plays an important role in our work. Later, I will write about the persistence of redis, the ...

Added by cornercuttinjoe on Sun, 16 Jan 2022 18:39:28 +0200