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

Webpage response and data cache acceleration processing method and system based on Redis

A data caching and processing method technology, which is applied in the direction of electronic digital data processing, special data processing applications, network data retrieval, etc., can solve problems such as slow response speed and waste of resources, and achieve the effect of improving page response speed

Pending Publication Date: 2021-01-26
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the front-end needs a data that is not directly stored in the database table, and needs to perform a large number of calculations and table operations based on flexible and unfixed parameters to obtain this data in real time, it will cause a response every time the page is accessed or refreshed to call the interface. The speed is very slow, and a lot of resources are wasted at the same time; so a Redis-based web page response and data cache speed-up processing method and system are invented to solve the above problems

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
  • Webpage response and data cache acceleration processing method and system based on Redis
  • Webpage response and data cache acceleration processing method and system based on Redis
  • Webpage response and data cache acceleration processing method and system based on Redis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] A Redis-based web page response and data cache speed-up processing method, the specific steps of the method are as follows:

[0052] S1 distinguishes the front-end request parameters through the password generated by the MD5 algorithm;

[0053] S2 adds a Redis lock in the database as a data management lock;

[0054] S3 judges whether the management lock is invalid or the value is empty;

[0055] S4 sets a scheduled task to clean up the access data in Redis;

[0056]First, in order to distinguish different input parameter combinations from the front end, such as domain name, time zone, time range, etc., according to S1, the parameters are passed through the MD5 algorithm to obtain a unique password string. Then, for multi-node distributed servers, in order to avoid multi-node Simultaneous operations lead to multiple processing. According to S2, add a Redis lock in the database as a data management lock. The specific effective duration can be determined by combining the...

Embodiment 2

[0077] A Redis-based web page response and data cache speed-up processing system, the system specifically includes a parameter distinguishing module, a data management module, a data verification module and a data cleaning module:

[0078] Parameter distinguishing module: distinguish the front-end request parameters through the password generated by the MD5 algorithm;

[0079] Data management module: add a Redis lock in the database as a data management lock;

[0080] Data verification module: determine whether the management lock is invalid or the value is empty;

[0081] Data cleaning module: set a scheduled task to clean up the access data in Redis;

[0082] First, in order to distinguish different input parameter combinations from the front end, such as domain name, time zone, time range, etc., the parameters are passed through the MD5 algorithm to obtain a unique password string through the parameter differentiation module. Then, for multi-node distributed servers, in or...

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 discloses a webpage response and data cache acceleration processing method and system based on Redis, and belongs to the field of computer application and development. The method comprises the following specific steps: S1, generating passwords for front-end request parameters through an MD5 algorithm to distinguish the front-end request parameters; S2, additionally arranging a Redislock in the database to serve as a data management lock; S3, judging whether the management lock is invalid or the value is empty or not; and S4, setting a timing task to clean the access data in theRedis. According to the universal and easy-to-use data processing and storage implementation method, the corresponding return data is processed and stored according to different parameter conditions transmitted by the front end, so that repeated complex operation processing and other work can be avoided, the data can be quickly returned to the front end, and the page response speed is increased.

Description

technical field [0001] The invention discloses a Redis-based webpage response and data cache speed-up processing method and system, and relates to the technical field of computer application development. Background technique [0002] Redis (full name: Remote Dictionary Server Remote Dictionary Service) is an open-source, log-type, Key-Value database written in ANSIC language, supports the network, can be memory-based or persistent, and provides APIs in multiple languages. Its development is hosted by VMware. [0003] Redis supports data persistence and has rich data types. Compared with other databases, it has the advantages of flexible use and extremely high performance, and is especially suitable for the present invention. [0004] MD5 Message Digest Algorithm (English: MD5 Message-Digest Algorithm), a widely used cryptographic hash function, can generate a 128-bit (16-byte) hash value (hash value), used to ensure information transmission Completely consistent. [0005]...

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
IPC IPC(8): G06F16/957G06F16/958G06F9/54
CPCG06F16/9574G06F16/958G06F9/547
Inventor 赵贲陈初兴徐士强魏金雷
Owner SHANDONG LANGCHAO YUNTOU INFORMATION 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