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

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

Five common data types of centos7 redis

Five common data types of centos7 redis Redis key commandeffectkey *View all key s in the current libraryexists keyDetermine whether a key existstype keyView the type of keydel keyDelete the specified key data (delete directly)unlink keySelect non blocking deletion (asynchronous deletion) according to value. Only keys are deleted from the met ...

Added by dkruythoff on Sun, 16 Jan 2022 06:06:25 +0200

Webpack series - use of browser caching and Shimming

webpack and browser caching We use webpack to package our modular application. Webpack will generate a deployable / dist directory, and then place the packaged content in this directory. As long as the contents in the / dist directory are deployed on the server, the client (usually the browser) can access the server's website and its resources ...

Added by tukon on Sat, 15 Jan 2022 05:42:32 +0200

SpringBoot2.x series of tutorials: integrating Hazelcast to realize distributed cache (50)

preface In the above tutorial, I} introduced you to the Hazelcast framework. Next, we will use the framework to realize the distributed cache function. I Implementation steps of distributed cache code 1. Create a Web project According to our previous experience, we create a Web program and transform it into a Spring Boot project. The specif ...

Added by iron999mike on Fri, 14 Jan 2022 16:53:39 +0200

Major manufacturers are using EhCache. Where is it better than Redis?

Story background With the decline of hardware price, people rely more and more on hardware. I even heard that the code is not important. If not, add machines. For example, the use of cache is usually based on virtual machine memory, disk storage and Middleware (Redis memory). We all know that the most suitable is the best, but in practice, it ...

Added by damo87 on Fri, 14 Jan 2022 08:51:07 +0200

Cache experiment

1, Experimental objectives: Understand the impact of Cache on system performance 2, Experimental environment: 1. Personal computer (Intel CPU) 2. Ubuntu Linux operating system 3, Experiment contents and steps 1. Compile and run program A and record relevant data. 2. When the matrix size is not changed, compile and run program B and record ...

Added by mickwaffle on Mon, 10 Jan 2022 22:42:51 +0200

02 redis common data types

brief introduction summary As a key/value data storage system, Redis provides a variety of data types to facilitate data management. Then, the data generated in our project is stored based on the specified type, such as user login information, shopping cart information, commodity details, etc. Common data types The basic data structures in ...

Added by Koobi on Mon, 10 Jan 2022 15:15:55 +0200

2, Thread security analysis

Thread security analysis 1, The source of concurrent programming problems Visibility, which is caused by the multi-core cpu cache. Each cpu accesses its own cache, and the data in the cache of different CPUs is invisible. (cache is used to improve I/O storage speed) Atomicity, caused by thread switching, one code in Java corresponds to m ...

Added by ouch! on Sun, 09 Jan 2022 03:04:21 +0200

springboot 2. Getting started with X - springboot2 X annotation based cache implementation and increase expiration time

In the evening, I went to a Honda car club, the civic of Yishui. Although I'm not the owner of Honda, I like cars very much, so I would go to join in the fun. The civic red in the hatchback is really handsome. Hahaha, I didn't get home until nearly ten o'clock in the evening. It's twelve o'clock after writing this article. Well, no more nonsens ...

Added by Nick~C on Wed, 05 Jan 2022 01:08:05 +0200