Spring cache cache notes

Spring is an abstraction layer for caching 1. Introduce dependency spring-boot-starter-cache spring-boot-starter-data-redis 2. Write configuration Configure the cache used in the application spring.cache.type=redis 2.1 cache name It can be generated automatically without configuration, If configured, the function of creating this name ...

Added by LightningSt on Fri, 17 Sep 2021 17:20:45 +0300

Ranking system based on Redis

A marketing activity was conducted last month. The activity is probably divided into two teams. Users can join the team at will and improve their combat power value by constantly doing tasks. While improving their combat power value, they will also improve the combat power value of their team. In the process of continuous PK, the combat power v ...

Added by mbhcool on Fri, 17 Sep 2021 14:17:33 +0300

Redis master-slave replication

Concept: copy the data from one Redis server to other Redis servers. The former is called the master node and the latter is called the slave node; Data replication is unidirectional and can only be performed from master node to slave node By default, each redis server is the master node, and a master node can have multiple slave nodes (or no s ...

Added by Ice on Sun, 12 Sep 2021 02:30:37 +0300

Redis's String data type and structure

String type 1. String data type and structure Introduction to String Types String type is the most basic data structure for redis and is also the most commonly used type.The other four types are more or less built on string types, so String types are the basis of redis. String values can store up to 512MB, where String types can be ...

Added by sarbas on Mon, 06 Sep 2021 19:59:20 +0300

docker builds redis cluster

docker builds redis cluster 1. Download the redis image docker pull redis 2. Prepare the configuration fileRedis.conf mkdir /home/docker/redis/ wget https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf -O /home/docker/redis/redis.conf cd /home/docker/redis/ sed -i 's/# slaveof <masterip> <masterport>/slaveof red ...

Added by lc on Mon, 13 Jul 2020 17:48:21 +0300

Redis from entry to mastery (VIII. Redis cluster)

This article introduces the Redis Cluster cluster, and briefly introduces the implementation of the cluster. It is mainly a specific practical part: cluster startup, failover, adding nodes, removing nodes Basic concepts of Redis cluster Redis's cluster mode provides data fragmentation and ensures the availability of each partition. Each node of ...

Added by jdorsch on Thu, 25 Jun 2020 14:10:22 +0300

Using Redis to implement the cut-to-program operation

This project is a Spring boot project Redis Cutting Programming Target: Add a comment to the method to cache when querying Method: Custom Note+AOP Section Programming step Say nothing but go directly to the code demonstration Step One Definition Notes @Retention(RetentionPolicy.RUNTIME) @Target( ...

Added by Bad HAL 9000 on Tue, 23 Jun 2020 05:27:47 +0300

Detailed explanation of Docker Dockerfile instructions and practical cases

Dockerfile introduces and commonly used instructions, including FROM, RUN, COPY, ADD, EXPOSE, WORKDIR, etc. in fact, dockerfile has powerful functions and provides more than ten instructions.   About Dockerfile Dockerfile is a text file used to build an image. The text content contains instructions and instructions required to build an image. ...

Added by programguru on Sun, 21 Jun 2020 11:49:45 +0300

MyBlog background development

Java back end interface and Vue front end 1. See the effect first publish an article Background login Blog details Java back end interface development: Using springboot+mybaitsPlus+shiro+jwt+lombok+redis; database mysql5.7+ Here, we use IDEA to develop the background interface. It's easy to create a ...

Added by sergio-pro on Sat, 20 Jun 2020 10:11:20 +0300

Redis deep adventure application

Article catalog install Infrastructure string set Quotation marks Options lock obtain release exists expire System clock Various key operations Expiration algorithm colony list quicklist rpush rpop lpop lpush lindex lrange ltrim llen blpop brpop hash set zset zrange zrevrange zcard Curren ...

Added by ralba1998 on Thu, 18 Jun 2020 06:11:24 +0300