rodert single row learning redis advanced [silver 1]

redis silver I To make a digression, recently, the epidemic situation in the capital of China is very serious. We are all in the current of the times. This is not for individuals. I hope you can protect yourself and have fun every day. [toc] preface Statement: refer to the Internet, and leave a message if there is any dispute. Standing on the s ...

Posted by Stanley90 on Thu, 25 Jun 2020 11:19:57 +0200

Redis data type, transaction and Jedis operation redis

Five basic types of Redis Note: Note arrangement source: B station UP master maniac said Java Official document: Redis is an open source (BSD licensed) in memory data structure storage system, which can be used as database, cache and message middleware. It supports many types of data structures, such ...

Posted by pplexr on Mon, 22 Jun 2020 10:19:45 +0200

Redis Learning Notes: Java uses Jedis to connect Redis instances (the difference between using String and hash types to store objects)

Foreword: When we need to operate on redis, we need to start the redis-server service first, then start the redis-cli client to connect to the redis server to operate on it, or we can connect redis directly with the visual operation tool to operate on it.But what should we do if we need java programs to ...

Posted by boonika on Thu, 11 Jun 2020 18:11:27 +0200

springBoot integrated redisson for distributed locks

scene The company has a piece of business that needs to run the timer business to process data. Background uses springBoot to develop, springBoot integration timer task is very simple, use Scheduled is configured to use cron, and a business is executed 45 minutes per hour, because the background is cluster deployed, and the front end is respon ...

Posted by shya on Fri, 15 May 2020 05:02:36 +0200

Redis installation deployment application [part]

Linux Installation of Redis 1. Preparing the installation package 2. Unzip the installation packagetar zxvf redis-5.0.5.tar.gz 3. Enter the folder you just unzipped and enter the make command 4. After waiting for the above process to complete, enter the make install command 5. Run. / Redis server under the redis/src / folder to start Redis ...

Posted by Bob_PHP_Builder on Sat, 09 May 2020 19:12:10 +0200

redis storage object

redis is a key value storage system. Similar to Memcached, it supports more value types, including string, list, set, Zset and hash. In the actual work, the data needs to be stored in the form of objects, and the implementation is as follows: For redis configuration, please refer to http://blog.csdn.net/leo187/article/details/78704811 After ...

Posted by endersix on Mon, 04 May 2020 17:53:44 +0200

The use of redis distributed lock in springboot project

Now, the microservice projects developed use more distributed locks, so some records are made for the self-determined implementation of distributed locks.*In the actual project, you can use the RLock lock of the Redisson framework directly. Create a springboot redis project     springboot-redis-demo Add dependency package <dependency> ...

Posted by dionsweet on Tue, 28 Apr 2020 16:15:39 +0200

High concurrency, rush to buy

The scene of students choosing courses is similar to that of buying train tickets. Baidu summed up four ways 1. Thread lock. With synchronized, the performance drops sharply. java itself is multithreaded. It's not a wise choice to use it as a single thread. At the same time, if you add synchronized to distributed deployment, you cannot control ...

Posted by phonydream on Thu, 23 Apr 2020 18:07:48 +0200

Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together

This chapter covers the redis interface Aspect signature swagger2 1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy 2. Create an empty module project Add pom dependency <dependencies> <dependency> ...

Posted by l00ph0le on Thu, 26 Mar 2020 16:09:58 +0100

API s commonly used in Redis - are you really familiar with Redis?

For a long time, Redis, as a Nosql database, has been widely used in a variety of projects due to its function of frying chickens and cows. I didn't think much of Redis before, but now I like it more and more. It is often used to store some common data, such as user id, session, user menu permission, me ...

Posted by Hotkey on Sat, 18 Jan 2020 11:34:07 +0100