Data storage method, server, storage medium and device

A data storage device and data storage technology, applied in the database field, can solve problems such as inaccuracy and inefficient storage of data, and achieve the effects of solving inefficiency and inaccuracy, improving efficiency and high accuracy

Active Publication Date: 2019-01-25
WUHAN JIYI NETWORK TECH CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The main purpose of the present invention is to provide a data storage method, a Redis node, a storage medium and a device, aiming to solve the technical problem of inefficiency and inaccuracy when storing data in a Redis node of a Redis cluster

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
  • Data storage method, server, storage medium and device
  • Data storage method, server, storage medium and device
  • Data storage method, server, storage medium and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0059] Reference figure 2 , figure 2 It is a schematic diagram of the server structure of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0060] Such as figure 2 As shown, the server may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard ...

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 discloses a data storage method, a server, a storage medium and a device. The method includes the following steps: when a data storage request is received, extracting the key to be stored and the information to be stored from the data storage request. Performing a hash operation on the storage key to obtain a current hash value corresponding to the key to be stored; Matching the current hash value with each preset hash value in the preset hash ring; When the matching is successful, a preset Redis node corresponding to the preset hash value of the matching is determined, and the information to be stored is stored in the preset Redis node. Obviously, the present invention obtains a hash value corresponding to the data storage request and queries the corresponding Redis node based on the hash value, with high accuracy; Moreover, because the query process of Redis node will be based on the hash ring, it improves the query efficiency, and then solves the technical problems oflow efficiency and inaccuracy when storing data in the Redis cluster.

Description

Technical field [0001] The present invention relates to the field of database technology, in particular to data storage methods, servers, storage media and devices. Background technique [0002] Redis, as a high-performance key-value database, is often used to implement data storage operations and query operations. [0003] In order to increase the storage capacity of data, flexibly manage its storage capacity and facilitate subsequent query operations on the stored data, multiple Redis nodes can be deployed at the same time to build a Redis cluster, see figure 1 Redis cluster in [0004] However, considering that there are a large number of Redis nodes in the Redis cluster at the same time, when the data is actually stored, because it is not possible to quickly determine which Redis node in the Redis cluster to store the current data, business personnel need to additionally set the Redis node selection method To determine the Redis node that stores the current data. [0005] However...

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 Applications(China)
IPC IPC(8): G06F16/22G06F16/27
Inventor 黄胜蓝汪智勇
Owner WUHAN JIYI NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products