A cache management method and device

A cache management and caching technology, which is applied in the computer field, can solve problems such as hot data reducing concurrency efficiency, and achieve the effects of improving concurrency efficiency, avoiding global lock competition, and improving cache hit rate

Active Publication Date: 2019-11-15
ZHEJIANG TMALL TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above two algorithms are not only prone to lock competition, which reduces the concurrency efficiency of hot data, but also because they are completely eliminated based on time series, they are cleaned by a large amount of data at the peak of access, and are eliminated from the cache.

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
  • A cache management method and device
  • A cache management method and device
  • A cache management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The present application will be described in further detail below with reference to the accompanying drawings.

[0033] In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer readable media, random access memory (RAM) and / or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), stat...

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 application aims to provide a cache management method and device. Compared with the prior art, the cache management device provided by the application queries and determines a target cache record matched with main key information in a cache containing a plurality of cache records, wherein each cache record comprises corresponding citation information and latest access information; and updating the citation information and the latest access information corresponding to the target cache record. The citation information and the latest access information are set in the cache records, so that the cache management device can be helped to set a replacement mechanism of the cache records; the cache management device ensures that the cache records active recently are stored in the cache, so that the active cache records are prevented from being replaced; and meanwhile, "the citation information" and "the latest access information" can be modified through only one atomic instruction without the need for performing a lock operation on the cache records, so that global lock contention during modification of an existing cache management algorithm is avoided and the concurrent efficiency is effectively improved.

Description

technical field [0001] The present application relates to the field of computers, and in particular, to a cache management technology. Background technique [0002] Cache is a memory space opened up to improve system performance. The main function of the cache is to temporarily store the data processing results of the business system in memory and wait for the next access. In many occasions of daily development, due to the limitation of the performance of the hard disk interface or the data processing and acquisition of the business system, it may be very time-consuming. When the data request volume of the business system is large, frequent IO and logical processing will lead to hard disk and CPU resources. bottleneck appears. Therefore, the function of the cache is to store these data in the memory. When other threads or clients need to query the same data resources, the data is directly returned from the cache, which can not only improve the response time of the system, ...

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/2455G06F12/123
Inventor 黄益聪魏闯先
Owner ZHEJIANG TMALL TECH 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