Method and device for refreshing cached data

A caching data and caching technology, which is applied in the network field, can solve the problems of low cache value timeliness and wasteful use of server resources, and achieve the effects of improving timeliness, avoiding wasteful use, and avoiding invalid refresh

Active Publication Date: 2021-03-02
BEIJING IQIYI TECH CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the refresh time setting is small, the server will refresh frequently, which will cause a waste of server resources
For example, assuming that the fixed time interval is 1 second, and the number of video playbacks in the current cache is 1000, if the current moment is a period of user downturn, the number of video playbacks does not change within 50 seconds, although the number of video playbacks does not change. However, during this period, the number of video playbacks in the cache was refreshed 50 times, resulting in a waste of server resources
[0004] To sum up, in the prior art, refreshing the cached data at a fixed time interval will result in low timeliness of the current cached value, or cause wasteful use of server resources

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
  • Method and device for refreshing cached data
  • Method and device for refreshing cached data
  • Method and device for refreshing cached data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0052] An embodiment of the present application provides a method for refreshing cached data, and the method is applied to a server. The server can store some data in the cache, for example, store data such as video playback times, video likes / dislikes, and video comments in the cache, and the server can obtain the current cache value, the refresh time of the current cache value, and the historical cache value and the refresh time of the historical cache value, and then, according to the refresh time of the current cache value and the current cache value, and the refresh time of the historical cache value and the historical cache value, determine the cache value at the next refresh and the current cache value Predict the rate of change, and determine the step value corresponding to the buffer interval t...

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 embodiment of the invention provides a method and a device for refreshing cache data. RELATING TO NETWORK TECHNOLOGY, The method comprises the following steps of: obtaining a sample; according tothe current cache value and the refreshing time of the current cache value, determining a predicted change rate between the cache value and the current cache value during next refreshing according toa preset mapping relation between the cache interval and the step value and a historical cache value and a refreshing moment of the historical cache value, and determining a step value corresponding to the cache interval to which the current cache value belongs according to the preset mapping relation between the cache interval and the step value; According to the current cache value and a step value corresponding to a cache interval to which the current cache value belongs, determining a predicted difference value between the cache value and the current cache value during next refreshing; Determining the next refreshing time according to the prediction difference value, the prediction change rate and the refreshing time of the current cache value; And when the next refreshing moment is reached, refreshing the current cache value. By adopting the method and the device, the timeliness of the current cache value can be improved, and the waste of server resources can be avoided.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a method and device for refreshing cached data. Background technique [0002] In order to reduce the operating pressure of the server, in the prior art, the server stores some data in the cache, and refreshes the current cache value at regular intervals. After the current cache value is refreshed, the server may send the refreshed cache value to the user terminal, and the user terminal may acquire the refreshed cache value and display it to the user. For example, the server can count the number of times the video is played, and store the number of times the video is played in the cache, and then refresh the number of times the video in the cache is played at a fixed time interval, such as playing the video in the cache every 10 minutes times to refresh. In this way, whenever the video is played and the number of times the video is played increases, the server does not need to ...

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): H04N21/231H04L29/08
Inventor 王晨皮基庆
Owner BEIJING IQIYI 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