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

Data caching method and device, equipment and storage medium

A data caching and caching technology, applied in the computer field, can solve the problems of instantaneous increase in database access, data loss, cache invalidation, etc., to improve user experience, prevent loss, and improve efficiency.

Inactive Publication Date: 2022-05-27
四川万网鑫成信息科技有限公司
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there are some disadvantages when using the cache to access data, such as cache failure in high concurrency scenarios, resulting in an instantaneous increase in database access or even crashes, or because the data in the memory will be cleared when the power is turned off, so it is stored in the memory of data are at risk of loss

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
  • Data caching method and device, equipment and storage medium
  • Data caching method and device, equipment and storage medium
  • Data caching method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0040] The embodiment of the present application discloses a data caching method, which is applied to a server. See figure 1 As shown, the method includes:

[0041] Step S11: Acquire a data acquisition request initiated by the target client for the target data.

[0042] In this embodiment, it is first necessary to acquire a data acquisition request initiated by a target client (Client) corresponding to the server for the target data whe...

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 data caching method and device, equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps that a data acquisition request initiated by a target client for target data is acquired, after the data acquisition request reaches a gateway, the gateway judges whether a first-level cache located in a local memory hits the target data or not according to a target caching rule, and if yes, the first-level cache in the local memory hits the target data; if the target data is hit, obtaining the target data from the first-level cache and returning the target data to the target client, if the target data is not hit, judging whether the target data exists in a second-level cache of the preset cache middleware or not, and if the target data exists in the second-level cache, obtaining the target data from the second-level cache and returning the target data to the target client, and if not, obtaining the target data from the service system and returning the target data to the target client. According to the method, network transmission and I / O operation of a disk are reduced in a multi-level cache mode, the client request efficiency, the CPU resource utilization rate and the query frequency processed by the system in unit time are improved, and meanwhile cache data can be prevented from being lost.

Description

technical field [0001] The present application relates to the field of computer technologies, and in particular, to a data caching method, apparatus, device, and storage medium. Background technique [0002] In the traditional architecture, the request initiated by the client will directly reach the database of the server, and the database will respond to the client after finding the data. Under this architecture, there will be response time timeout and excessive server resource occupation due to too long links, thus affecting the throughput and stability of the system. [0003] At present, in order to improve the data access speed and program performance, the cache mechanism is usually used to preload the data in the database into the memory, and then it is completed in the memory when accessing the data, thereby reducing the access to the database and solving the problem. In high concurrency scenarios, the database can easily become a performance bottleneck. However, the...

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 Applications(China)
IPC IPC(8): H04L67/568H04L67/01G06F16/2455G06F16/2453G06F3/06
CPCG06F16/24552G06F16/2453G06F3/061G06F3/0619Y02D10/00
Inventor 黄勇陈鑫伟王明君
Owner 四川万网鑫成信息科技有限公司
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