Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing cache expiration failure and automatic refreshing

An automatic refresh and cache technology, applied in the computer field, can solve problems such as not being able to be set separately, and achieve the effect of avoiding insufficient timeliness

Pending Publication Date: 2021-12-14
厦门最有料数字科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) The new cache annotation only supports redis database
[0005] (2) The cache automatic refresh time can only be set uniformly, not separately

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 for realizing cache expiration failure and automatic refreshing
  • Method for realizing cache expiration failure and automatic refreshing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0028] see Figure 1-2 , the present invention is a method for realizing cache expiration, invalidation and automatic refresh, comprising the following steps;

[0029] Step 1: Cache the general configuration, and the application writes the data storage requirements into the database;

[0030] Step 2: Annotate the configuration and mark the automatic refresh time or data expiration time;

[0031] Step 3, the cache processor intercept...

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 belongs to the technical field of computers an relates to a method for realizing cache expiration failure and automatic refreshing. The method comprises the following steps of: 1, performing cache general configuration, specifically, writing a data storage requirement into a database by an application program; 2, performing annotating configuration, specifically, marking automatic refreshing time or data expiration time; 3, performing cache processor interception, specifically, under the condition that a system runs, making a cache processor intercepts and sets the cache expiration time and marks whether automatic refreshing is needed or not; and 4, performing timed task-based cache refreshing, specifically, pulling a cache carrying refreshing parameters when the timed task time is up. The invention provides a set of technical scheme for realizing the expiration and automatic updating of a method result cache through cache annotation configuration, processor interception and timed task refreshing, and the setting of expiration time is supported, so that the cache can be applied more flexibly according to the business; and the cache can be automatically refreshed, and insufficient timeliness of the cache is avoided.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method for realizing cache expiration, invalidation and automatic refresh. Background technique [0002] Spring cache annotations do not support setting the expiration time and refreshing the cache regularly. In business, sometimes it is necessary to specify that some caches have an expiration time, so as to avoid affecting the business or occupying space due to the existence of the cache after the cache is not needed; it is inconvenient to update the cache manually. To synchronize the latest request results in time, this technology is designed as an extension of Spring cache annotations. [0003] Defects in the prior art: [0004] (1) The new cache annotation only supports redis database. [0005] (2) The cache auto refresh time can only be set uniformly, not individually. [0006] (3) If the cache expiration time is set, and the cache expires just before the refresh time...

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): G06F16/2455G06F16/2457G06F16/23G06F16/27G06F9/48G06F9/50G06F11/14
CPCG06F16/24552G06F16/24578G06F16/23G06F16/27G06F9/4881G06F9/5038G06F11/1448
Inventor 李智超
Owner 厦门最有料数字科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products