Cached data refreshing method and device

A technology for caching data and caching, which is applied in the field of communication, and can solve problems such as lack of data persistence and data synchronization, and low memory usage efficiency, so as to avoid repeated refresh of program cache, achieve persistence and synchronization, and reduce waste.

Active Publication Date: 2018-07-20
CHINA MOBILE COMM GRP CO LTD +1
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] An object of the embodiments of the present invention is to solve the problems of low memory usage efficiency, lack of data persistence and data synchronization in the prior art due to the use of Memcached

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
  • Cached data refreshing method and device
  • Cached data refreshing method and device
  • Cached data refreshing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0037] figure 1 It shows a schematic flowchart of a method for refreshing cached data provided by an embodiment of the present invention, see figure 1 , the method can be implemented by a Redis-based stream processing platform, specifically comprising the following steps:

[0038] 110. Obtain the cache task of the Oracle database;

[0039]...

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 disclose a cached data refreshing method and device. The method comprises the following steps of: obtaining a cache task of an Oracle database; refreshing to-be-cached data corresponding to the cache task to an application database Redis, and generating a data refreshing signal key corresponding to the to-be-cached data; and when the to-be-cached data is refreshed to an internal cache of a business processing program, writing an ID of the business processing program into a value of the key. According to the method, an Oracle database and an application database Redis+-based high-class calculation platform IBM Streams is built on the basis of an SOA architecture, and when the cached data is refreshed to the Redis, the refreshing signal key is automatically generated, so that the ID is written into the value of the key when the internal cache of the business processing program is refreshed, the persistence and synchronization of the cached data are realized,repeated program cache refreshing is avoided and the resource waste is decreased.

Description

technical field [0001] Embodiments of the present invention relate to the field of communication technologies, and in particular to a cache data refresh method and device. Background technique [0002] Cache is an in-memory database that resides in memory, and the reading speed of memory is much faster than the speed at which programs can read data from disk. When designing a program, the use of cache is often considered. Putting frequently accessed data on the memory can improve the speed of accessing data, and at the same time reduce the pressure on the disk or database. [0003] At present, the caching strategy of Memcached is usually adopted. Memcached is a high-performance distributed memory object caching system for dynamic web applications to reduce database load. It improves the speed of dynamic, database-driven websites by caching data and objects in memory to reduce the number of database reads. In order to improve the speed of data storage, Memcached will automa...

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): G06F17/30
CPCG06F16/23G06F16/275
Inventor 刘彦伯崔刚
Owner CHINA MOBILE COMM GRP 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