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

Annotation-based local cache realization method, storage device and electronic device

A technology of local cache and implementation method, applied in memory systems, program control design, software engineering design, etc., can solve problems such as unfavorable maintenance and large amount of local cache development, and achieve the effect of reducing workload

Inactive Publication Date: 2017-12-12
SHENZHEN HIVE BOX TECHNOLOGY CO LTD
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above deficiencies in the prior art, the purpose of the present invention is to provide an annotation-based local cache implementation method, storage device and electronic equipment, aiming to solve the problems of large amount of development and unfavorable maintenance when implementing local cache in the prior art

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
  • Annotation-based local cache realization method, storage device and electronic device
  • Annotation-based local cache realization method, storage device and electronic device
  • Annotation-based local cache realization method, storage device and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The present invention provides an annotation-based local cache implementation method, storage device and electronic device. In order to make the purpose, technical solution and effect of the present invention clearer and clearer, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0047] see figure 1 , figure 1 It is a flow chart of a preferred embodiment of an annotation-based local cache implementation method of the present invention, as shown in the figure, which includes steps:

[0048] S1, when calling the Java class method, intercepting the Java class method;

[0049] S2. Analyzing the annotation contained in the Java class method to generate a cache flag;

[0050] S3. Return the implementation result of the Java class method through the cache, or create a cache or clear the cache.

[0051] In t...

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 annotation-based local cache realization method, a storage device and an electronic device. The method comprises the steps of A, when a Java class method is called, intercepting the Java class method; B, analyzing an annotation contained in the Java class method to generate a cache mark; and C, returning a realization result of the Java class method through a cache, or performing addition or deletion operation on the cache. If the realization result of one method needs to be locally cached, only the corresponding annotation needs to be configured in the method, and then the cache can be operated according to the annotation, so that the workload is reduced.

Description

technical field [0001] The present invention relates to the technical field of local caching, in particular to an annotation-based local caching implementation method, a storage device and an electronic device. Background technique [0002] In the prior art, some data has a small amount of data but is accessed very frequently (such as some data dictionaries). For this scenario, it is necessary to download the data to the local cache of the application to improve the access efficiency of the system and reduce unnecessary Database access, this is because the database access occupies the database connection, and the network consumption is relatively large. The so-called local cache is relative to the network (including clusters, database access, etc.), but in the system, for each type of cache, a corresponding class must be written to handle cache operations, which undoubtedly increases the development workload. Adding cache judgment and access operations to the program also i...

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/44G06F9/45G06F12/0877
CPCG06F8/315G06F8/443G06F9/449G06F12/0877G06F2212/1021G06F2212/1032
Inventor 潘榕芳
Owner SHENZHEN HIVE BOX TECHNOLOGY CO LTD
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