Cache expiration time setting method and device, electronic equipment and storage medium

A technology of expiration time and electronic equipment, applied in the direction of electrical digital data processing, input/output process of data processing, instruments, etc., can solve the problems of wasting cache space and unfavorable fine management of cached data, etc.

Pending Publication Date: 2019-11-22
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, access information such as the access volume of different data in the cache is different, so a unified cache expiration time is not con

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
  • Cache expiration time setting method and device, electronic equipment and storage medium
  • Cache expiration time setting method and device, electronic equipment and storage medium
  • Cache expiration time setting method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] 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, not to limit the present application. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0038] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments descr...

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

Embodiments of the invention provide a cache expiration time setting method and device, electronic equipment and a storage medium. The method comprises the steps of obtaining a first page view of a first type of data stored in the electronic equipment in a first preset time period and a cache hit rate corresponding to the first page view; according to the first page view and the cache hit rate, determining the number of times that the first type of data is read in the permanent memory memory in the first preset time period; and setting the cache expiration time of the target data of the firsttype according to the read times. According to the invention, the cache expiration time can be set according to the number of times that the data is read in the permanent memory; the cache expirationtime is matched with the number of times that the data is read in the permanent memory, so that fine management of the cache data is realized, the reading pressure of the permanent memory is reduced,and the cache space is saved.

Description

technical field [0001] The present application relates to the field of data caching, in particular to a method, device, electronic device and storage medium for setting cache expiration time. Background technique [0002] Nonvolatile memory such as hard disks can store large amounts of data, but reading data from nonvolatile memory is slow. In order to improve the data reading speed, the prior art stores part of the data through a cache capable of high-speed data reading and writing. When it is necessary to read certain data, first try to read the data in the cache, if not, then read the data from the permanent memory storage. Since the storage space of the cache is small, it is necessary to delete data that has not been read for a long time from the cache in time so as to save other data. The existing cache will manage the data stored in the cache by setting a cache expiration time (such as 1 minute), and when a certain data is not read within the cache expiration time, t...

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): G06F3/06
CPCG06F3/0608G06F3/0656G06F3/0673
Inventor 李桐
Owner BEIJING QIYI CENTURY SCI & 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