Method and device for image caching

A picture and caching technology, applied in the field of data processing, can solve the problems of wasting network traffic and download time, reducing user experience, occupying storage space, etc., to avoid re-downloading pictures and improve user experience.

Active Publication Date: 2020-04-21
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing picture cache replacement algorithm judges whether the picture should be replaced according to the time and frequency of the picture being accessed, which can ensure that a fixed size of storage space is occupied. When the user needs to browse the picture, it needs to be downloaded again, wasting network traffic and Download time, degrading user experience

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 image caching
  • Method and device for image caching
  • Method and device for image caching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0062] refer to figure 1 As shown, it shows a flow chart of the steps of Embodiment 1 of a picture caching method of the present invention, which may specifically include the following steps:

[0063]Step 101, when it is detected that the user browses the current picture, determine whether the current picture exists in the cache.

[0064] When the user browses the current picture, it may be that the user browses the picture through an instant chat app...

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 present invention provide a picture caching method and apparatus. The method comprises: when it is detected that a user browses a current picture, determining whether there is a current picture in the cache; and when there is no current picture in the cache, obtaining the used space of the cache and determining whether the used cache space is greater than a preset threshold; ifso, obtaining browsing information of each picture in the cache, determining a to-be-deleted picture according to the browsing information, the preset threshold and the used cache space, and deletingthe to-be-deleted picture from the cache, and storing the current in the cache. Thus, according to the method and apparatus provided by the embodiments of the present invention, when the used cache space is greater than the preset threshold, the deleted picture can be determined according to the browsing information of the picture, the to-be-deleted picture can be determined with the reference tothe browsing behavior of the user, and pictures interested by the user can be retained in the limited cache space, so that re-downloading of the picture is avoided, and the user experience is improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for caching pictures. Background technique [0002] With the popularization of smart mobile terminals and Apps (Applications), users can browse pictures through Apps, and in order to save the network traffic and download time of Apps to obtain pictures, usually cache space is allocated for Apps to store images passed through the Apps. Browse historical images. [0003] Due to the limited memory space of the smart mobile terminal, it is impossible to allocate more cache space for the App, so the pictures cached by the App are limited. When the cache space is insufficient, some cached pictures must be deleted to make room for the cache space to store new pictures. The existing picture cache replacement algorithm judges whether the picture should be replaced according to the time and number of times the picture is accessed, which can ensure that a fixed ...

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/54G06F16/51G06F12/0891
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