Apparatus and method for eliminating inconsistency of cache objects through weak reference technology

A weak reference and consistency technology, applied in the field of data processing, can solve problems such as cache object inconsistency, and achieve the effect of avoiding inconsistency

Inactive Publication Date: 2016-03-16
YONYOU NETWORK TECH
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to solve the problem of cache object inconsistency by proposing a device and method for eliminating cache object inconsistency through weak reference technology

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
  • Apparatus and method for eliminating inconsistency of cache objects through weak reference technology
  • Apparatus and method for eliminating inconsistency of cache objects through weak reference technology
  • Apparatus and method for eliminating inconsistency of cache objects through weak reference technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0047] like figure 1 As shown, a device for eliminating cache object inconsistency through weak reference technology, including a weak reference dictionary manager, a cache object manager and a cache object acquirer,

[0048] Cache object manager: add the eliminated cache objects in the cache area to the weak reference dictionary manager;

[0049] Weak reference dictionary manager: holds cached objects from the cached object manager;

[0050] Cache Object Acquirer: When obtaining a cache object, first obtain the cache object stored in the cache area. If the cache object cannot be obtained in the cache area, then obtain the cache object from the weak reference dicti...

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 an apparatus and a method for eliminating the inconsistency of cache objects through a weak reference technology. The apparatus for eliminating the inconsistency of the cache objects through the weak reference technology comprises a weak reference dictionary manager, a cache object manager and a cache object acquirer, wherein the cache object manager is used for adding cache objects eliminated in a cache region into the weak reference dictionary manager; the weak reference dictionary manager is used for storing the cache objects from the cache object manager; and the cache object acquirer is used for acquiring the cache objects stored in the cache region first during cache object acquisition, and acquiring the cache objects from the weak reference dictionary manager if not acquiring the cache objects in the cache region. Therefore, the problem of inconsistency of the cache objects is solved.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a device and method for eliminating cache object inconsistency through weak reference technology. Background technique [0002] In the field of object-oriented software development, the high-efficiency operation of the system is often achieved through the cache mechanism. For the cache mechanism that uses memory as the cache object storage container, due to the limited size of the memory, it is often necessary to eliminate cache objects through mechanisms such as cache capacity limitation or cache object timeout time. The most commonly used elimination strategy is LRU (Least Recently Used) algorithm. For a cache system with an elimination mechanism, a user request may be processed by different program components. If the cache object is eliminated during the process, there may be different versions of the same object in memory. This inconsistency Sex can seriously interfere with p...

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): G06F9/45
CPCG06F8/454
Inventor 张红斌
Owner YONYOU NETWORK TECH
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