Redis source code learning integer set

intset application Redis will use memory mapping to replace the internal data structure under the condition of such a small amount of data. This makes two kinds of memory saving data structures, integer set and zip list, come into beingInteger set is one of the underlying implementations of set key. When a set contains only integer value eleme ...

Posted by chrbar on Fri, 10 Sep 2021 16:07:30 -0700

Redis List data type, structure and application scenario

List data type List type is used to store multiple ordered strings. Each character in the list is regarded as an element. One or more elements can be stored in a list. redis's list supports storing 2 ^ 32 power - 1 element. redis can insert (pubsh) and pop-up (POP) elements from both ends of the list. It supports reading the element set of t ...

Posted by krishnam1981 on Wed, 08 Sep 2021 00:19:14 -0700

Four stages -- day16 -- Practice of Redis data persistence / Redis transaction processing

I. Introduction to Redia data persistence 1 background description Redis is an in memory database, and data may be lost in case of power failure. For example, if you hang up the whole redis, then redis is unavailable. If there is no persistence, redis will lose all data. If you make a piece of data to disk through persistence, and then sync ...

Posted by jdm95lude on Tue, 07 Sep 2021 21:37:40 -0700

FlinkSQL custom function (UDF) dimension table conversion

preface Relationship between Table and SQL: SQL is the inheritance encapsulation of Table (this point is in Flink concept For example, StreamTableEnvironment can be embodied by inheriting from TableEnvironment. Therefore, the use of tables in official documents can be reflected in SQL, such as user-defined functions, Table API & custom fun ...

Posted by scofansnags on Tue, 07 Sep 2021 19:38:53 -0700

zset type, structure and application scenario of Redis

Zset type and structure The redis ordered set is also a part of the set type, so it retains the feature that the elements in the set cannot be repeated. However, the difference is that the ordered set sets an additional score for each element, which is used as the basis for sorting. Ordered sets can be sorted from small to large using score ...

Posted by rameshmrgn on Tue, 07 Sep 2021 16:38:24 -0700

Redis zset for sliding window current limiting

This article is included in the column ❤️<Redis Factory Essential Skills Pack❤️ Thousands of people praise the collection, the complete set of Redis learning materials, the essential skills of the factory!  Catalog 1. Demand 2. Common design errors 3. Sliding window algorithm 3.1 Solution 3.2 pipeline code implementation 3.3 l ...

Posted by pinochio on Mon, 06 Sep 2021 11:14:20 -0700

Run jeecg boot in the form of docker, with 5 dockers (one mysql, one redis, one backend, one frontend and one uniapp)

1. redis: ``` docker pull redis docker run --name jeecg-boot-redis -p 6379:6379 -d redis ``` Create a redis container named jeecg boot redis with port number 6379 2. mysql: docker pull mysql:5.7.28 docker run -p 3306:3306 --name jeecg-boot-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7.28 --lower_case_table_names=1 Create a redis con ...

Posted by TNIDBMNG on Sat, 04 Sep 2021 20:45:37 -0700

Redis - underlying data structure

Storage system architecture: The concept of "database" exists in Redis. This structure is defined by redisDb in redis.h. When the Redis server is initialized, 16 databases will be allocated in advance. All databases are saved to the redisServer.db array, a member of the redisServer structure. In the redisClient, a pointer named DB ...

Posted by nosheep on Sat, 04 Sep 2021 20:26:45 -0700

E-commerce project (grain mall)

E-commerce project summary E-commerce project (grain mall) 1, Project objectives: Cereal mall is a B2C e-commerce project, which sells self operated goods to customers. 2, Project architecture 1. Technical architecture The grain mall adopts the front and rear end separation development, which is a micro service project Front end developm ...

Posted by jbol on Sat, 04 Sep 2021 19:33:06 -0700

[Redis 1] overview of Redis basic knowledge, mars Java tutorial, baidu online disk

(1) Is business data commonly used? What is the utilization rate? If utilization is low, there is no need to write to the cache. (2) Does the business have many read operations or write operations? If there are many write operations and the database needs to be written frequently, there is no need to use cache. (3) What is the size of bu ...

Posted by infini on Fri, 03 Sep 2021 23:35:06 -0700