Multi-level caching method and system for realizing high cohesion and low coupling
A low-coupling and caching technology, applied in the field of communication, can solve problems such as not being able to adapt to unified platform services, achieve the effect of alleviating massive data storage and high-efficiency access, improving access speed, and reducing secondary development requirements
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Please refer to figure 1 , the multi-level caching method for realizing high cohesion and low coupling of the present invention provides a hierarchical arrangement for obtaining an operation request of a data object of a business application, including: S100, sending the operation request of the data object; S200, according to the operation request , merging and classifying the data objects according to the business function using the queue mode, and encapsulating layer by layer using a data object-oriented development method; S300, managing the data objects based on the configuration definition, and providing an operation interface for the data objects, to cache dynamic content.
[0033] Preferably, the merging and classifying the data objects includes: distributing the data objects in a queue mode.
[0034] Preferably, the configuration-based management of data objects includes: setting the memcached corresponding to each data object, and distributing the data object...
Embodiment 2
[0079] Please refer to image 3 , the multi-level caching system of this embodiment realizes high cohesion and low coupling, and the overall architecture is designed hierarchically according to the operation request for obtaining the data object of the business application, including: the client layer, used to send the operation request of the data object; the service The layer is used to merge and classify the data objects according to the operation request and the queue mode according to the business function, and adopts the data object-oriented development method to carry out layer-by-layer encapsulation; the storage layer is used to define management based on configuration Describe the data object and provide the operation interface of the data object to cache the dynamic content.
[0080] Preferably, the storage layer includes: memcached distributed in queue mode.
[0081] Preferably, the configuration-based management of data objects includes: setting the memcached corr...
Embodiment 3
[0110] This embodiment is applied to the electronic coupon service of the 12580 large-scale electronic mall. When a user searches for life services, the agent will send the 12580 electronic coupon to the customer's mobile terminal in the form of SMS and MMS. Customers can enjoy designated preferential prices when they go to contracted cooperative merchants to consume with 12580 electronic coupons. 12580 electronic coupons cover catering, leisure, shopping, beauty salons, fitness and other industries.
[0111] Preferably, the user logs into the 12580 mall and sends an operation request for the data object; the 12580 mall platform verifies the user's identity according to the user's login operation request, and returns the verification result.
[0112] Preferably, the 12580 mall platform adopts the queue mode to merge and classify the data objects according to business functions, such as electronic coupons in various industries such as catering, leisure, shopping, beauty salons,...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


