Method and device for operating cache data

A technology for caching data and data, which is applied in the field of data communication, can solve problems such as caching data failure, high disk access pressure, and increasing user access response time, so as to increase the average response speed, reduce peak load, and improve stability and reliability Effect

Active Publication Date: 2013-04-03
BEIJING QIHOO TECH CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this approach can easily bring certain "bumps" to the upper-layer application, that is, at the time of memory expansion, all cached data will be invalidated. At this time, all user access must go to the database or disk to find data, which increases the response time of user access, and at the same time makes the disk access pressure instantly too high

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 operating cache data
  • Method and device for operating cache data
  • Method and device for operating cache data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0034] According to one aspect of the present invention, a method for operating cached data is proposed, such as figure 1 As shown, the method includes the following steps:

[0035] Step S1, if the data in the first memory space is full, then judge whether the first memory space is empty, if not, take out the data at the starting position from the first memory space until all the all data in the first memory space; if so, release ...

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 discloses a method and device for operating cache data. The method comprises the following steps of judging whether a first internal memory space is empty or not if the first internal memory space is fully filled with data, taking the data, located at a starting position, out of the first internal memory space to be written into a second internal memory space with larger volume if the first internal memory space is not empty, until taking out all data in the first internal memory space; and releasing the first internal memory space if the first internal memory space is empty. The invention also provides a method for transferring the cache data in the first internal memory space into the second internal memory space with small volume as well as a device corresponding to the method. Due to the adoption of the method and the device, not only can the enlarging / reduction requirement of the cache volume be met, but also a user can access the cache data normally during the transferring period of the data; and meanwhile, during the peak flow of the data, the pressure of a database or a magnetic disk can be alleviated, and the integral service stability also can be improved.

Description

technical field [0001] The invention relates to the technical field of data communication, in particular to a method and device for operating cached data. Background technique [0002] At present, many large-scale Internet products and services have increasingly used caching technology. Website technicians usually cache hotspot data accessed by users in memory. When other users access the same data, they can directly read from the memory and return the read data to the user to avoid searching from slow devices such as databases or disks. [0003] Although many cache devices have been widely used, most cache devices need to reapply to the operating system for a larger space of memory when the storage space is insufficient, and at the same time release the old memory area to accommodate the new memory. Migrate or populate data in the space. However, this approach can easily bring certain "bumps" to the upper-layer application, that is, at the time of memory expansion, all c...

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/08G06F17/30
Inventor 杨帆
Owner BEIJING QIHOO 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