Cache generation and control method, cache server and interface server
A cache server and interface server technology, which is applied in the fields of cache generation and control, cache server and interface server, can solve problems such as database congestion, high concurrency, and performance degradation, and achieve the effects of ensuring efficiency, improving user experience, and alleviating database congestion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0072] refer to figure 2 , figure 2 It is a flow chart of the cache generation control method provided in the first embodiment of the present invention, and its control process includes:
[0073] S201: The cache server receives a cache generation lock request;
[0074] S202: Determine whether there is already a cache generation lock request identical to the received cache generation lock request; if yes, go to S203; otherwise, go to S204;
[0075] S203: Feedback the locked indication to the interface server.
[0076] S204: Feedback an indication of successful locking to the interface server.
[0077] In this embodiment, the cache generation lock request received by the cache server refers to a request generated and sent by the interface server when receiving a user request and judging that the corresponding cache value does not exist.
[0078] It should be understood that, in this embodiment, there are two states that the cache value does not exist: the cache value is in...
no. 2 example
[0116] This embodiment provides a cache generation method on the basis of the first embodiment.
[0117] refer to Figure 6 , Figure 6 It is a flow chart of sending a buffer to generate a lock request when the interface server screens user requests provided in the second embodiment of the present invention. The process includes:
[0118] S601: The interface server receives the user request;
[0119] S602: judge whether there is a corresponding cache value; if so, turn to S603; otherwise, turn to S604;
[0120] S603: Return the corresponding cached value to the user.
[0121] S604: judge whether there is the same user request; if so, turn to S605; otherwise, turn to S606;
[0122] S605: Send a cache generation lock request to the cache server for the same user request.
[0123] S606: Send a cache generation lock request to the cache server for each user request.
[0124] That is, when the interface server determines that among received user requests, at least two identi...
no. 3 example
[0137] In order to minimize the situation that the cache value corresponding to the user request does not exist, this embodiment provides a cache generation control method on the basis of the first embodiment and the second embodiment.
[0138] refer to Figure 7 , Figure 7 The flow chart of cache refreshing provided by the third embodiment of the present invention. The cache refresh process includes:
[0139] S701: The interface server scans the effective time of each cache value in the cache server;
[0140]S702: Whether the remaining effective time of the scanned cache value is less than the preset time threshold; if so, then proceed to S703; otherwise, proceed to S706;
[0141] S703: Obtain the cache key corresponding to the cache value;
[0142] S704: Obtain a corresponding interface according to the cache key;
[0143] S705: Call the obtained interface to regenerate the cache value and write it into the cache server.
[0144] S706: Do not operate on the cached val...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com