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

Method and device for reading and writing cache memory on basis of Spring expression language

A technology of caching memory and expressions, applied in memory systems, instruments, electrical digital data processing, etc., can solve the problems of not being able to start and stop at any time, failure, and prolonging service response time.

Inactive Publication Date: 2017-08-15
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the existing technology has the following disadvantages: it is based on the dynamically generated proxy mechanism to aspect the method call, if the method of the object is an internal call (that is, this reference), or if the non-public method wants to implement annotation-based caching It will cause the proxy mechanism to fail, and the aspect will also fail; when writing data, there will be operations to insert cache during the execution of business logic, which will lengthen the response time of the entire service; it cannot be started and stopped at any time, as long as it does not throw If an exception occurs, the method data will be cached, not according to the return result of the method, and the applicable scenarios have strong restrictions; if the data expiration time of different methods is different, multiple cache instance objects must be defined, the maintenance cost is high, and If you need to modify the cache settings, you must restart the service, which is poor in flexibility; there is no corresponding solution for preventing cache penetration and instantaneous timeout of large batches of data in the same service.

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 reading and writing cache memory on basis of Spring expression language
  • Method and device for reading and writing cache memory on basis of Spring expression language
  • Method and device for reading and writing cache memory on basis of Spring expression language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] Specific embodiments of the present invention will be described in detail below, and it should be noted that the embodiments described here are only for illustration, not for limiting the present invention. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one of ordinary skill in the art that these specific details need not be employed to practice the present invention. In other instances, well-known circuits, materials or methods have not been described in detail in order to avoid obscuring the present invention.

[0085] Throughout this specification, reference to "one embodiment," "an embodiment," "an example," or "example" means that a particular feature, structure, or characteristic described in connection with the embodiment or example is included in the present invention. In at least one embodiment. Thus, appearances of the phrases "in on...

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 for reading and writing a cache memory on the basis of a Spring expression language. The method comprises the following steps of: generating a cache secret key by utilizing the Spring expression language on the basis of an attribute of a user; and outputting data, corresponding to a cache secret key, stored in the cache memory when the fact that the cache secret key matched with the generated cache secret key exists in the cache memory is determined.

Description

technical field [0001] The present disclosure relates generally to cache memory reading and writing, and more particularly, to methods and apparatus for reading and writing cache memory based on the Spring Expression Language. Background technique [0002] A cache is a fast temporary storage built to avoid frequently fetching data from a database or disk file. The use of cache can effectively improve the load capacity of the website and reduce the service response time. Spring cache is not a specific cache implementation (such as EHCache or OSCache) in essence, but an abstraction for cache use. By adding a small amount of various annotations defined by it to the existing code, the return object of the cache method can be achieved Effect. However, the existing technology has the following disadvantages: it is based on the dynamically generated proxy mechanism to aspect the method call, if the method of the object is an internal call (that is, this reference), or if the non-...

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/0891
Inventor 刘慧卿
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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