Data caching method and device

A data cache and cache technology, applied in the field of communication, can solve problems such as single data storage method

Active Publication Date: 2018-07-27
NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] Embodiments of the present invention provide a data caching method and device to at least solve the problem of single data storage methods in the related art

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, figure 2 It is a block diagram of the hardware structure of a computer terminal for a data caching method in an embodiment of the present invention. Such as figure 2 As shown, the computer terminal 20 may include one or more (only one is shown in the figure) processor 202 (the processor 202 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), for A memory 204 for storing data, and a transmission device 206 for communication functions. Those of ordinary skill in the art can understand that, figure 2 The shown structure is only for illustration, and it does not limit the structure of the above-mentioned electronic device. For example, computer terminal 20 may also include figure 2 m...

Embodiment 2

[0070] In this embodiment, an LRU cache device is also provided, which is used to implement the above embodiments and preferred implementation manners, and what has been explained will not be repeated here. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0071] According to another embodiment of the present invention, an LRU cache device is provided, including: an acquisition module, configured to acquire data to be stored; a determination module, configured to determine the storage location of the data to be stored according to the occupied length of the current LRU linked list , wherein the storage location includes: a plurality of areas pre-divided according to the maximum length of the LRU linke...

Embodiment 3

[0076] According to another embodiment of the present invention, a storage medium is provided, and the storage medium includes a stored program, wherein, when the program is running, the method described in any one of the above optional embodiments is executed.

[0077]Optionally, in this embodiment, the above-mentioned storage medium may include but not limited to: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk Various media that can store program codes such as discs or optical discs.

[0078] Optionally, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementation manners, and details are not repeated in this embodiment.

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 provides a data caching method and device. The method comprises the steps of predividing a cache link table into multiple areas, wherein the areas are used for storing data of differentpriorities respectively; after receiving data to be stored, according to the occupied length of a current link table, namely, the occupied proportion, determining the storage position of the data to be stored. The problem in the related art that the storage mode is single is solved, and files are flexibly stored in different areas according to occupied situations of the current link table.

Description

technical field [0001] The present invention relates to the communication field, in particular, to a data caching method and device. Background technique [0002] In related technologies, in the fields of large-scale distributed systems and virtualization, physical storage (usually mechanical hard disks, or disk arrays based on mechanical hard disks) is pooled for centralized management by means of software-defined storage. To achieve the purpose of on-demand allocation and elastic scaling. [0003] At this time, due to the need to cope with the pressure from different businesses at the same time, the input and output I / O speed of the mechanical hard disk often becomes the bottleneck of the system. The usual way to solve this problem is to use high-performance memory or solid-state disk as the I / O cache between the business system and the disk, and try to replace the hot data that is frequently read and written into the high-performance cache to improve the response speed o...

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): G06F12/123
CPCG06F12/123
Inventor 屠要峰郭斌黄震江王兆政
Owner NANJING ZHONGXING XIN SOFTWARE 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