Web caching method based on comment description

A caching and annotation technology, applied in the field of Internet applications, can solve problems such as error-prone coding, achieve the effect of simplifying workload and avoiding operation errors

Inactive Publication Date: 2015-11-25
CHINA YOUKE COMM TECH
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These operations also involve multi-thread synchronization, and coding is error-prone, resulting in dirty data

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
  • Web caching method based on comment description
  • Web caching method based on comment description

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0017] A method for web caching based on annotation description, characterized in that it includes the following steps: Step S1: the user browser initiates an HTTP request corresponding to the cache operation annotation on the query method, and the request is first intercepted by the cache interceptor; Step S2: The cache interceptor finds that the data on the Controller method and related parameters has never been cached, and then sends the Controller method and related parameters to the controller object for processing; Step S3: The controller object performs various database query operations to obtain the generated view. All the data needed, the database returns the data to the controller; step S4: the controller calls the cache method to save all the data needed to generate the view; the controller sends the data to the view; step S5: the vie...

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 aims to provide a web caching method based on comment description. In a controller, data caching of the method is set through @before (CacheInterceptor.class). A cache which is set by the controller of the method is eliminated through @Before(EvictInterceptor.class). According to the web caching method, programming operation by means of Java API is not used, thereby preventing operation error of a programmer. A user does not require considering a problem of caching a certain object into a certain cacheName. Different interceptor configurations are used in a cache reading operation and a cache eliminating operation. No parameter exists and the workload of the programmer is greatly reduced. The web caching method supports clustering arrangement of multiple cache servers. Furthermore a cache server is shutdown and offline, or the cache server goes online again, cache plug-ins are adapted automatically, thereby automatically adjusting distribution of the caches, and ensuring a fact that the cache hit rate reaches an expected number.

Description

technical field [0001] The invention belongs to the field of Internet applications, and in particular relates to a Web caching method based on annotation description. Background technique [0002] Cache is the buffer area for data exchange (called Cache). When a piece of hardware wants to read data, it will first search for the required data from the cache. If it finds it, it will execute it directly. Since the cache runs much faster than the memory, the job of the cache is to help the hardware run faster. [0003] The API is a call interface left by the operating system to the application program, and the application program makes the operating system execute the command (action) of the application program by calling the API of the operating system. Existing solutions use general APIs to implement caching, that is, developers explicitly call caching APIs, which usually include the following two types of APIs: [0004] 1. The set / get method directly operates the cache. Th...

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): H04L29/08
CPCH04L67/02H04L67/568
Inventor 蔡晓东
Owner CHINA YOUKE COMM 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