Data caching method, device, equipment and storage medium
A technology of data caching and caching nodes, which is applied in the computer field, can solve problems such as the complexity of data caching and backup work, and achieve the effects of reducing complexity, improving security capabilities, and increasing storage capacity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] figure 1 It is a flow chart of the data caching method provided by Embodiment 1 of the present invention. The technical solution of this embodiment is applicable to the situation where the client or proxy sends cached data to the server. The method can be executed by the data caching device provided in the embodiment of the present invention. The device can be implemented in the form of software and / or hardware, and configured to be applied in a processor of the client or the agent.
[0054] The method specifically includes the following steps:
[0055] S101. Obtain a write request for cached data, and determine a hash slot corresponding to the cached data according to the write request.
[0056] The write request for cached data can be a write request for cached data input by the client received by the client, or a write request for the client to automatically read the cached data generated by the application, or a cached data sent to it by the client obtained by the a...
Embodiment 2
[0066] figure 2 It is a flow chart of the data caching method provided by Embodiment 2 of the present invention. On the basis of the above-mentioned embodiments, the embodiment of the present invention adds the steps of the method for detecting the working status of the cache node. Such as figure 2 As shown, the method includes:
[0067] S104. Detect the working state of each cache node based on a preset detection sequence.
[0068] In order to ensure the validity and real-time performance of the data cache, it is usually necessary to make the cache nodes (servers) that provide the cache service in a normal working state. For this reason, the client or agent in this embodiment detects each cache node based on the preset detection order working status. It is understandable that the client or agent can also detect the working status of each cache node in real time, as long as the device performance of the client or agent can ensure the real-time performance of data cache, ...
Embodiment 3
[0079] image 3 is a schematic structural diagram of the data cache device provided in Embodiment 3 of the present invention. The device is used to execute the data caching method provided in any of the above embodiments, and the control device may be implemented by software or hardware, and configured for use on a client or an agent. Such as image 3 As shown, the device includes:
[0080] A write request acquisition module 11, configured to acquire a write request for cached data, and determine a hash slot corresponding to the cached data according to the write request;
[0081] Correspondence acquisition module 12, configured to acquire a correspondence between a hash slot and a cache node, and determine a cache node corresponding to the hash slot according to the correspondence, wherein the cache node is provided with a corresponding slave node ;
[0082] The sending module 13 is configured to send the cached data to the cache node corresponding to the hash slot, and t...
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