Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Domain life cycle control method, system, server and storage medium for realizing redis hash key

A technology of life cycle and control method, which is applied in the direction of responding to the generation of errors, error detection of redundant data in calculations, instruments, etc., can solve the problems of not being able to use Hash, not providing, etc., to reduce computing costs and maintenance costs , saving computing resources, high maintainability and availability

Active Publication Date: 2021-11-26
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But Redis does not provide this feature, Redis itself only provides key-level lifecycle control
In actual use, because the key of the String type has a life cycle control, most developers do not use the Hash type but use String instead of Hash, but cannot use the convenience brought by the object relationship of Hash

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Domain life cycle control method, system, server and storage medium for realizing redis hash key
  • Domain life cycle control method, system, server and storage medium for realizing redis hash key
  • Domain life cycle control method, system, server and storage medium for realizing redis hash key

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention provides a domain lifecycle control method, system, server and storage medium for realizing the HASH key of Redis, based on the object activity attribute of the key of Redis and light-weight timing tasks of two different strategies, for the data of each Hash structure, which is a similar structure for storing the Hash data Key value, and the value of the field is the expected expiration time of the key, so as to realize the life cycle control of the field of the Hash type.

[0026] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present inve...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a domain life cycle control method, system, server and storage medium for realizing the HASH key of Redis. The method combines LRU active attributes and timing tasks in Redis to realize the domain life cycle control of the Hash type of Redis, and the error is within seconds. The level realizes the automatic deletion of the Hash field, so that the business can use the storage structure traversal brought by the Hash type, and at the same time control the life cycle of the Hash type field.

Description

technical field [0001] The invention relates to the field of software engineering, in particular to a domain life cycle control method, system, server and storage medium for realizing the HASH key of Redis. Background technique [0002] In the field of software engineering, the in-memory database Redis is widely used. Redis' high IO processing capability and storage reading capability are widely used in user data cache and message queue. There are 5 types of keys in Redis, string type, hash type, list type, set type and zset type. Redis provides the concept of life cycle for the key, that is, the user can set the survival time for the key, after the survival time, the key is automatically deleted. This feature is also widely used in various types of businesses, and it also releases the memory space of Redis. [0003] The Hash structure in Redis is widely used because it is similar to the object structure, that is, it has domains and values. However, in use, it is found tha...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/901G06F11/14
CPCG06F11/1458
Inventor 张振铎
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products