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

Method and device for realizing caching

An implementation method and caching technology, applied in the field of network communication, can solve the problems of multiple concurrent data access requests, business processing errors, concurrency obstacles, etc., so as to reduce the possibility of concurrent obstacles and avoid business processing errors.

Active Publication Date: 2020-08-14
ANT WEALTH (SHANGHAI) FINANCIAL INFORMATION SERVICES CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The same business data may be stored in different cache components. Since each cache component will update the cached business data according to its own update mechanism, the same business data in different cache components may be inconsistent, resulting in application business Handle errors; in addition, each cache component will initiate a data acquisition request to the data provider when updating the same business data, which will easily lead to multiple concurrent access requests for the same data, causing concurrency obstacles

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 realizing caching
  • Method and device for realizing caching
  • Method and device for realizing caching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The embodiment of this application proposes a new cache implementation method, adding a cache manager for unified management of two or more cache components between the application and the cache component, and the application requests business data from the cache manager , the cache manager is responsible for obtaining business data from the data provider and writing it into at least one cache component specified by the application; the cache manager can also uniformly schedule the update of cached business data in each cache component; thus maintaining each cache component Consistency of business data in the cache, avoiding each cache component from requesting the same business data from the data provider, reducing the possibility of concurrent obstacles, so as to solve the problems existing in the prior art.

[0018] It should be noted that the cache manager mentioned in the embodiment of this application is a logical component or a logical hierarchical structure betwe...

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 provides a cache realization method. A cache comprises at least two caching assemblies; the method comprises the following steps: when meeting a first pre-set condition, acquiring business data, which is required by an application before, from a data provider; writing the acquired business data into at least one caching assembly according to the caching assemblies adopted by the business data which is required by the application. According to the cache realization method provided by the invention, business processing errors, caused by the fact that the data is inconsistent, are avoided, and the possibility that concurrent faults occur is extremely reduced.

Description

technical field [0001] The present application relates to the technical field of network communication, and in particular, to a cache implementation method and device. Background technique [0002] Caching is a data access technology commonly used in various Internet-based applications. Internet-based applications generally need to obtain various business data through the network, and use the business data to provide users with corresponding services. For some business data that is frequently used by applications, these data can be temporarily stored locally for the application to read multiple times, thereby improving the response speed of the application and reducing the access pressure of the data provider. [0003] Java provides developers with a variety of different caching technologies, each of which has its own characteristics and applicable scenarios. In some complex applications, several cache components corresponding to different cache technologies are often used...

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 Patents(China)
IPC IPC(8): G06F9/50G06F9/54
CPCG06F9/5016G06F9/544
Inventor 樊宏伟李兆贵卢嘉喜李少翀王义龙蒋超
Owner ANT WEALTH (SHANGHAI) FINANCIAL INFORMATION SERVICES 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