Uniform data caching method and device based on Redis cluster, terminal and storage medium
A data and cluster technology, applied in electrical digital data processing, data processing input/output process, instruments, etc., can solve the problems of idle memory, performance degradation, waste of resources, etc., and achieve the effect of uniform data distribution
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] figure 1 It is a flowchart of a method for evenly caching data based on a Redis cluster provided in Embodiment 1 of the present invention.
[0061] In this embodiment, the method for evenly caching data based on a Redis cluster can be applied to a terminal, and for a terminal that requires evenly caching data based on a Redis cluster, the Redis-based method provided by the method of the present invention can be directly integrated on the terminal. The function of evenly caching the data of the cluster, or running in the terminal in the form of a software development kit (Software Development Kit, SKD).
[0062] Such as figure 1 As shown, the Redis cluster-based data uniform caching method specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some can be omitted.
[0063] S11, initialize the set array.
[0064] Redis can start service instances on different physical machines or on t...
Embodiment 2
[0126] figure 2 It is a structural diagram of a Redis cluster-based data uniform caching device provided in Embodiment 2 of the present invention.
[0127] In some embodiments, the Redis cluster-based uniform data caching device 20 may include a plurality of functional modules composed of program code segments. The program codes of the various program segments in the Redis cluster-based data uniform caching device 20 can be stored in the memory of the terminal, and executed by the at least one processor for execution (see figure 1 Description) The function of evenly caching data based on Redis cluster.
[0128] In this embodiment, the Redis cluster-based data uniform caching device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an initialization module 201, an index association module 202, a hash calculation module 203, a logical operation module 204, a result judgment module 205, a remainder op...
Embodiment 3
[0189] refer to image 3 As shown in , it is a schematic structural diagram of a terminal provided by Embodiment 3 of the present invention. In a preferred embodiment of the present invention, the terminal 3 includes a memory 31 , at least one processor 32 , at least one communication bus 33 and a transceiver 34 .
[0190] Those skilled in the art should understand that, image 3 The structure of the terminal shown does not constitute a limitation of the embodiment of the present invention, it can be a bus structure or a star structure, and the terminal 3 can also include more or less other hardware or software than shown in the figure , or different component arrangements.
[0191] In some embodiments, the terminal 3 is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but not limited to microprocessors, application-specific integrated circuits, programmabl...
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