Data caching method and device, and computer equipment

A caching and data technology, applied in the field of cloud storage, can solve the problems of too many server links, lower storage efficiency, and more resources occupied

Pending Publication Date: 2019-08-20
PING AN TECH (SHENZHEN) CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Aiming at the deficiencies of the existing technologies, this application proposes a data caching method, device, and computer equipment, aimin

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0077] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0078] Such as figure 1 As shown, the embodiment of the present application proposes a data caching method, and the method includes the following steps:

[0079] Step S101, receiving a request from the first thread and the second thread to concurrently acquire the same service data.

[0080] In this embodiment, the concurrency can be at the same time point, or at the same time period. For example, the requests initiated by the first thread and the second thread at 15:00 are the same time point. The first The request initiated by the thread at 15:00 and the request initia...

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 the technical field of cloud storage, in particular to a data caching method and device, and computer equipment. The data caching method and device are characterized in that the first thread and the second thread concurrently request to acquire the same service data; if the cache fragment set is not searched for the service data, the step 2 is executed; if so, the first thread and the second thread compete for a lock and obtain the lock from the service data of the rear end; if the first thread competes successful, the service data of the rear end is locked, and only the first thread is allowed to obtain the service data; the service data is obtained in the first thread, and the corresponding first target service data and the first timestamp are written into the corresponding first cache fragment; and then, the service data of the rear end is unlocked; and the second thread obtains the first target service data from the first cache fragment, and then writes thecorresponding second target service data and the second timestamp into the corresponding second cache fragment, so as to solve the problem that the storage efficiency is reduced due to too many linksof the server and too many occupied resources, thus causing the server to be crashed.

Description

technical field [0001] The present application relates to the technical field of cloud storage, and in particular to a data caching method, device, and computer equipment. Background technique [0002] Multiple threads concurrently request access to the interface and obtain back-end data, which will lead to too many links to the server, occupying too many resources, reducing storage efficiency, and causing server downtime. Contents of the invention [0003] Aiming at the deficiencies of the existing technologies, the present application proposes a data caching method, device, and computer equipment, aiming to solve the problem that the server has too many links, takes up too many resources, reduces storage efficiency, and causes server downtime. [0004] The technical scheme that this application proposes is: [0005] A method for caching data, the method comprising: [0006] Receive requests from the first thread and the second thread to concurrently acquire the same ...

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/2455
CPCG06F16/24552
Inventor 李文斌
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products