CN110413546A - Date storage method, device and computer readable storage medium based on redis - Google Patents

Date storage method, device and computer readable storage medium based on redis Download PDF

Info

Publication number
CN110413546A
CN110413546A CN201910548136.9A CN201910548136A CN110413546A CN 110413546 A CN110413546 A CN 110413546A CN 201910548136 A CN201910548136 A CN 201910548136A CN 110413546 A CN110413546 A CN 110413546A
Authority
CN
China
Prior art keywords
data
client
different types
redis
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910548136.9A
Other languages
Chinese (zh)
Other versions
CN110413546B (en
Inventor
詹泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910548136.9A priority Critical patent/CN110413546B/en
Publication of CN110413546A publication Critical patent/CN110413546A/en
Priority to PCT/CN2019/117335 priority patent/WO2020253041A1/en
Application granted granted Critical
Publication of CN110413546B publication Critical patent/CN110413546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/12Replacement control
    • G06F12/121Replacement control using replacement algorithms
    • G06F12/123Replacement control using replacement algorithms with age lists, e.g. queue, most recently used [MRU] list or least recently used [LRU] list
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a kind of cloud storage technology, a kind of date storage method based on redis, device and computer readable storage medium are disclosed, this method comprises: receiving the different types of data from client;Different prefixes is added in the different types of data of client;The different types of data that the client of different prefixes will be added carry out serializing processing;The different types of data of the client by serializing processing are preferentially sent to redis server to store, then the different types of data of the client by serializing processing are stored in memory;Data are preferentially read from memory, if data cannot be read from memory, read data from redis server.After the different types of data of client are carried out serializing processing by the present invention, it is preferentially stored in redis server, so that it is guaranteed that all data all store in redis server, the problem of reading data exception occurs after avoiding a certain server delay machine.

Description

Date storage method, device and computer readable storage medium based on redis
Technical field
The present invention relates to field of data storage more particularly to a kind of date storage methods based on redis, device and calculating Machine readable storage medium storing program for executing.
Background technique
Mqtt agreement has been Internet of Things message criteria transport protocol at present, and in current, there are many mqtt to produce in the market Product are substantially cluster, and for the mqtt server-side of open source, cluster is realized or is very poor or is exactly to be not carried out.
Mainly there are two roles of client and server-side in mqtt agreement, while client is disappeared by server-side again The transmitting-receiving of breath, so the data there are many whole process need to store, however in actual use, if there is server-side When (such as primary server) delay machine, some data may cause loss, and when primary server delay machine, how effectively to read data is Problem to be solved at present.
Summary of the invention
The present invention provides a kind of date storage method based on redis, device and computer readable storage medium, main Purpose is to avoid the problem of the reading data exception in primary server delay machine.
To achieve the above object, the present invention provides a kind of date storage method based on redis, is applied to electronic device, The described method includes:
Receive the different types of data from client;
Different prefixes is added in the different types of data of the client;
The different types of data that the client of different prefixes is added are subjected to serializing processing;
The different types of data of the client by serializing processing are preferentially sent to redis server to carry out Storage, then the different types of data of the client by serializing processing are stored in memory;
Data preferentially are read from the memory, if data cannot be read from the memory, are serviced from the redis Data are read in device.
Optionally, described the step of different prefixes are added in the different types of data of the client, includes:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
Optionally, the described the step of different types of data of the client are carried out serializing processing, includes:
Analyze the data attribute of the data of the client;
The data of the client are split by the data attribute of the data by char character based on the client And carry out serializing processing.
Optionally, the different types of data include: client session information, subscribing relationship information, retain message Information, offline message information, the information for receiving qos2 message unconfirmed, distribution qos1 are unconfirmed and qos2 second stage is unconfirmed Message, qos2 second stage message state information.
Optionally, the data of the client are stored in the step in memory again described, by lru algorithm by institute The data for stating client are stored in memory.
The present invention also provides a kind of electronic device, the electronic device includes memory and processor, on the memory It is stored with the data recording program based on redis that can be run on the processor, the data based on redis store journey Sequence realizes following steps when being executed by the processor:
Receive the different types of data from client;
Different prefixes is added in the different types of data of the client;
The different types of data that the client of different prefixes is added are subjected to serializing processing;
The different types of data of the client by serializing processing are preferentially sent to redis server to carry out Storage, then the different types of data of the client by serializing processing are stored in memory;
Data preferentially are read from the memory, if data cannot be read from the memory, are serviced from the redis Data are read in device.
Optionally, described the step of different prefixes are added in the different types of data of the client, includes:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
Optionally, the described the step of different types of data of the client are carried out serializing processing, includes:
Analyze the data attribute of the data of the client;
The data of the client are split by the data attribute of the data by char character based on the client And carry out serializing processing.
Optionally, the different types of data include: client session information, subscribing relationship information, retain message Information, offline message information, the information for receiving qos2 message unconfirmed, distribution qos1 are unconfirmed and qos2 second stage is unconfirmed Message, qos2 second stage message state information.
Optionally, the data of the client are stored in the step in memory again described, by lru algorithm by institute The data for stating client are stored in memory.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Be stored with the data recording program based on redis on storage medium, the data recording program based on redis can by one or The multiple processors of person execute, the step of to realize the above-mentioned date storage method based on redis.
Date storage method based on redis, device and computer readable storage medium provided by the invention are by by institute The different types of data for stating client are added different prefixes and the different types of data of the client are carried out sequence After columnization processing, it is preferentially stored in redis server, so that it is guaranteed that all data all store in redis server, avoids certain Occurs the problem of reading data exception after one server delay machine.
Detailed description of the invention
Fig. 1 is the flow diagram for the date storage method based on redis that one embodiment of the invention provides;
Fig. 2 is the schematic diagram of internal structure for the electronic device that one embodiment of the invention provides;
The module signal of data recording program based on redis in the electronic device that Fig. 3 provides for one embodiment of the invention Figure.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of date storage method based on redis.Shown in referring to Fig.1, mentioned for one embodiment of the invention The flow diagram of the date storage method based on redis supplied.This method can be executed by device, which can be by Software and or hardware realization, in the present embodiment, described device is server-side.
In the present embodiment, the date storage method based on redis includes:
S101 receives the different types of data from client;The different types of data include: client session Information, subscribing relationship information, retain information, offline message information, the information for receiving qos2 message unconfirmed, distribution Qos1 is unconfirmed and message, qos2 second stage message state information is confirmed in qos2 second stage;
Different prefixes is added in the different types of data of the client by S103;
The different types of data that the client of different prefixes is added are carried out serializing processing by S105;
The different types of data of the client by serializing processing are preferentially sent to redis service by S107 Device is stored, then the different types of data of the client by serializing processing are stored in memory;
S109 preferentially reads data from the memory, if data cannot be read from the memory, from described Data are read in redis server;Such as the case where determining client session uniqueness, number is read from memory under normal circumstances According to being judged, if a certain primary server delay machine, cannot read data from memory, can be read from redis server Evidence of fetching realizes the effect of cluster so as to avoid the problem of reading data exception well.
Further, described the step of different prefixes are added in the different types of data of the client, includes:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
For example, after establishing tables of data, such as KH prefix can be added before client session information, it can believe in subscribing relationship DY prefix is added before breath, RE prefix can be added before retain information, LX can be added before offline message information JSQ prefix can be added before receiving qos2 the information of message is confirmed in prefix, can and qos2 second unconfirmed in distribution qos1 Stage is confirmed that FFQ prefix is added before message, and QDE prefix can be added before qos2 second stage message state information.
Further, the described the step of different types of data of the client are carried out serializing processing, includes:
Analyze the data attribute of the data of the client;
The data of the client are split by the data attribute of the data by char character based on the client And carry out serializing processing.
For example, the data of the client be a piece of news, the message include message id, client id, message body, The message is split by five data attributes of QOS, TOPIC, the data attribute by char character based on the message Carry out serializing processing.
Further, the data of the client are stored in the step in memory again described, it will by lru algorithm The data of the client are stored in memory.
Further, described that data are preferentially read from memory, if data cannot be read from memory, taken from redis The step of reading data, includes: in business device
Ping order cannot sent to confirm to primary server after reading data in memory, and within a preset time After stating primary server delay machine, data are read from redis server.
Ping order is sent to primary server for example, being often divided into 5 seconds, 10 seconds or 15 seconds etc..
Furthermore it is also possible to confirm the primary server delay machine by following steps: judging whether to get primary server Collection result determine that the operating status of primary server is normal, when not obtaining when getting the collection result of primary server return When getting the collection result of primary server, primary server delay machine is determined.
Further, after primary server delay machine, the principal and subordinate's server configuration information being stored in Redis server is added It is downloaded in memory, specifically includes:
Configuration information table is created, the configuration information table contains the configuration information of primary server and the configuration from server Information;The configuration information of the primary server includes the IP and port information of primary server, the configuration information from server Include the IP and port information from server;
Configuration information table transmission is loaded onto memory.
In addition, judging the operating condition from server, and judging from server when judging primary server delay machine The principal and subordinate's configuration information saved in memory is changed in normal situation, otherwise issues alarm command to warning device.
The present embodiment propose based on the date storage method of redis by by the different types of data of the client After different prefix is added and the different types of data of the client are carried out serializing processing, preferentially it is stored in There is number after avoiding a certain server delay machine so that it is guaranteed that all data all store in redis server in redis server According to the problem for reading exception.
The present invention also provides a kind of electronic devices 1.It is the electronic device that one embodiment of the invention provides referring to shown in Fig. 2 Schematic diagram of internal structure.
In the present embodiment, electronic device 1 can be server.The electronic device 1 includes at least memory 11, processing Device 13, communication bus 15 and network interface 17.In the present embodiment, the electronic device 1 is server-side.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 It can be the internal storage unit of electronic device, such as the hard disk of the electronic device in some embodiments.Memory 11 exists It is also possible to the External memory equipment of electronic device in other embodiments, such as the plug-in type hard disk being equipped on electronic device, Intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include the internal storage unit of electronic device or set including external storage It is standby.Memory 11 can be not only used for the application software and Various types of data that storage is installed on electronic device 1, such as based on redis Data recording program 111 code etc., can be also used for temporarily storing the data that has exported or will export.
Processor 13 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data.
Communication bus 15 is for realizing the connection communication between these components.
Network interface 17 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), be commonly used in Communication connection is established between electronic device 1 and other electronic equipments.
Optionally, electronic device 1 can also include user interface, and user interface may include display (Display), defeated Enter unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface and wireless interface.It is optional Ground, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touches device etc..Wherein, display can also be appropriate Referred to as display screen or display unit, for showing the information handled in an electronic and for showing visual user circle Face.
Fig. 2 illustrates only the electronic device 1 with component 11~17, it will be appreciated by persons skilled in the art that Fig. 2 shows Structure out does not constitute the restriction to electronic device, may include than illustrating less perhaps more components or combining certain A little components or different component layouts.
In the embodiment of electronic device 1 shown in Fig. 2, the data storage journey based on redis is stored in memory 11 Sequence 111;Processor 13 realizes following steps when executing the data recording program 111 based on redis stored in memory 11:
Receive the different types of data of client;The different types of data include: client session information, subscribe to Relation information, retain information, offline message information, the information for receiving qos2 message unconfirmed, distribution qos1 are unconfirmed And message, qos2 second stage message state information is confirmed in qos2 second stage;
Different prefixes is added in the different types of data of the client;
The different types of data of the client are subjected to serializing processing;
Preferentially the different types of data of the client are stored in redis server, then by the client Data are stored in memory;
Data are preferentially read from memory, if data cannot be read from memory, read number from redis server According to;Such as the case where determining client session uniqueness, data are read from memory under normal circumstances and are judged, if a certain Primary server delay machine cannot read data from memory, data can be read from redis server, so as to avoid number According to abnormal problem is read, the effect of cluster is realized well.
Further, described the step of different prefixes are added in the different types of data of the client, includes:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
For example, after establishing tables of data, such as KH prefix can be added before client session information, it can believe in subscribing relationship DY prefix is added before breath, RE prefix can be added before retain information, LX can be added before offline message information JSQ prefix can be added before receiving qos2 the information of message is confirmed in prefix, can and qos2 second unconfirmed in distribution qos1 Stage is confirmed that FFQ prefix is added before message, and QDE prefix can be added before qos2 second stage message state information.
Further, the described the step of different types of data of the client are carried out serializing processing, includes:
Analyze the data attribute of the data of the client;
The data of the client are split by the data attribute of the data by char character based on the client And carry out serializing processing.
For example, the data of the client be a piece of news, the message include message id, client id, message body, The message is split by five data attributes of QOS, TOPIC, the data attribute by char character based on the message Carry out serializing processing.
Further, the data of the client are stored in the step in memory again described, it will by lru algorithm The data of the client are stored in memory.
Further, described that data are preferentially read from memory, if data cannot be read from memory, taken from redis The step of reading data, includes: in business device
Ping order cannot sent to confirm to primary server after reading data in memory, and within a preset time After stating primary server delay machine, data are read from redis server.
Ping order is sent to primary server for example, being often divided into 5 seconds, 10 seconds or 15 seconds etc..
Furthermore it is also possible to confirm the primary server delay machine by following steps: judging whether to get primary server Collection result determine that the operating status of primary server is normal, when not obtaining when getting the collection result of primary server return When getting the collection result of primary server, primary server delay machine is determined.
Further, after primary server delay machine, the principal and subordinate's server configuration information being stored in Redis server is added It is downloaded in memory, specifically includes:
Configuration information table is created, the configuration information table contains the configuration information of primary server and the configuration from server Information;The configuration information of the primary server includes the IP and port information of primary server, the configuration information from server Include the IP and port information from server;
Configuration information table transmission is loaded onto memory.
In addition, judging the operating condition from server, and judging from server when judging primary server delay machine The principal and subordinate's configuration information saved in memory is changed in normal situation, otherwise issues alarm command to warning device.
The electronic device that the present embodiment proposes is by being added different prefixes for the different types of data of the client And after the different types of data of the client are carried out serializing processing, it is preferentially stored in redis server, thus really It protects all data all to store in redis server, the problem of reading data exception occurs after avoiding a certain server delay machine.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On the data recording program 111 based on redis that is stored with, the data recording program 111 based on redis can by one or Multiple processors execute, to realize following operation:
Receive the different types of data from client;The different types of data include: client session information, Subscribing relationship information, retain information, offline message information, the information for receiving qos2 message unconfirmed, distribution qos1 are not Message, qos2 second stage message state information is confirmed in confirmation and qos2 second stage;
Different prefixes is added in the different types of data of the client;
The different types of data that the client of different prefixes is added are subjected to serializing processing;
The different types of data of the client by serializing processing are preferentially sent to redis server to carry out Storage, then the different types of data of the client by serializing processing are stored in memory;
Data preferentially are read from the memory, if data cannot be read from the memory, are serviced from the redis Data are read in device;Such as judge whether the session of client is unique, data are read directly from redis server to be sentenced It is disconnected, to realize that data are managed concentratedly, facilitate inter-cluster communication and management;In addition, if a certain server delay machine, Ke Yicong Data are read in redis server, thus the problems such as avoiding abnormal data from transmitting.
Computer readable storage medium specific embodiment of the present invention and above-mentioned electronic device and each embodiment of method are basic It is identical, do not make tired state herein.
Optionally, in other embodiments, the data recording program 111 based on redis can also be divided into one A or multiple modules, one or more module are stored in memory 11, and by one or more processors (this implementation Example is processor 13) it is performed to complete the present invention, the so-called module of the present invention is to refer to complete a series of of specific function Computer program instructions section, for describing the implementation procedure of the data recording program based on redis in an electronic.
It is the data recording program based on redis in one embodiment of electronic device of the present invention for example, referring to shown in Fig. 3 111 program module schematic diagram, in the embodiment, the data recording program 111 based on redis can be divided into receiving module 10, data processing module 20, serializing processing module 30, distribution module 40, read module 50, illustratively:
The receiving module 10, for receiving the different types of data from client;The different types of data Include: client session information, subscribing relationship information, retain information, offline message information, receive that qos2 is unconfirmed to disappear The information of breath, distribution qos1 are unconfirmed and message, qos2 second stage message state information is confirmed in qos2 second stage;
The data processing module 20, for different prefixes to be added in the different types of data of the client;
The serializing processing module 30, for will be added different prefixes the client different types of data into Row serializing processing;
The distribution module 40, for preferentially sending out the different types of data of the client by serializing processing It gives redis server to be stored, then the different types of data of the client by serializing processing is stored in In memory;
The read module 50, for preferentially reading data from the memory, if cannot be read from the memory Data read data from the redis server;Such as judge whether the session of client is unique, directly serviced from redis Data are read in device to be judged, to realize that data are managed concentratedly, facilitate inter-cluster communication and management;In addition, if a certain Server delay machine can read data from redis server, thus the problems such as avoiding abnormal data from transmitting.
The receiving module 10, the data processing module 20, the serializing processing module 30, the distribution module 40, the program modules such as described read module 50 are performed realized functions or operations step and above-described embodiment substantially phase Together, details are not described herein.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of date storage method based on redis is applied to electronic device, which comprises
Receive the different types of data from client;
Different prefixes is added in the different types of data of the client;
The different types of data that the client of different prefixes is added are subjected to serializing processing;
The different types of data of the client by serializing processing are preferentially sent to redis server to deposit Storage, then the different types of data of the client by serializing processing are stored in memory;
Data preferentially are read from the memory, if data cannot be read from the memory, from the redis server Read data.
2. as described in claim 1 based on the date storage method of redis, which is characterized in that described by the client Different types of data are added the step of different prefixes and include:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
3. as claimed in claim 2 based on the date storage method of redis, which is characterized in that described by the client Different types of data carry out serializing the step of handling
Analyze the data attribute of the data of the client;
The data attribute of data by char character based on the client by the data of the client be split into Row serializing processing.
4. as described in claim 1 based on the date storage method of redis, which is characterized in that the different types of data Include: client session information, subscribing relationship information, retain information, offline message information, receive that qos2 is unconfirmed to disappear The information of breath, distribution qos1 are unconfirmed and message, qos2 second stage message state information is confirmed in qos2 second stage.
5. as described in claim 1 based on the date storage method of redis, which is characterized in that described again by the client The data at end are stored in the step in memory, and the data of the client are stored in memory by lru algorithm.
6. a kind of electronic device, which is characterized in that the electronic device includes memory and processor, is stored on the memory There are the data recording program based on redis that can be run on the processor, the data recording program quilt based on redis The processor realizes following steps when executing:
Receive the different types of data of client;
Different prefixes is added in the different types of data of the client;
The different types of data that the client of different prefixes is added are subjected to serializing processing;
Preferentially the different types of data of the client by serializing processing are stored in redis server, then will The different types of data of the client by serializing processing are stored in memory;
Data preferentially are read from the memory, if data cannot be read from the memory, from the redis server Read data.
7. electronic device as claimed in claim 6, which is characterized in that described to add the different types of data of the client The step of entering different prefixes include:
A tables of data is established, the different types of data are written in the tables of data;
Before different types of data are added in different prefixes.
8. electronic device as claimed in claim 6, which is characterized in that the different types of data by the client into Row serializing processing the step of include:
Analyze the data attribute of the data of the client;
The data attribute of data by char character based on the client by the data of the client be split into Row serializing processing.
9. electronic device as claimed in claim 6, which is characterized in that the different types of data include: client session Information, subscribing relationship information, retain information, offline message information, the information for receiving qos2 message unconfirmed, distribution Qos1 is unconfirmed and message, qos2 second stage message state information is confirmed in qos2 second stage.
10. a kind of computer readable storage medium, which is characterized in that be stored with and be based on the computer readable storage medium The data recording program of redis, the data recording program based on redis can be executed by one or more processor, with The step of realizing the date storage method based on redis as described in any one of claims 1 to 5.
CN201910548136.9A 2019-06-19 2019-06-19 Redis-based data storage method, device and computer readable storage medium Active CN110413546B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910548136.9A CN110413546B (en) 2019-06-19 2019-06-19 Redis-based data storage method, device and computer readable storage medium
PCT/CN2019/117335 WO2020253041A1 (en) 2019-06-19 2019-11-12 Data storage method employing redis, apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910548136.9A CN110413546B (en) 2019-06-19 2019-06-19 Redis-based data storage method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110413546A true CN110413546A (en) 2019-11-05
CN110413546B CN110413546B (en) 2024-03-12

Family

ID=68359585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910548136.9A Active CN110413546B (en) 2019-06-19 2019-06-19 Redis-based data storage method, device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110413546B (en)
WO (1) WO2020253041A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020253041A1 (en) * 2019-06-19 2020-12-24 平安科技(深圳)有限公司 Data storage method employing redis, apparatus, and computer-readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116125A1 (en) * 2015-10-26 2017-04-27 Salesforce.Com, Inc. Builder Program Code for In-Memory Cache
CN107357794A (en) * 2016-05-10 2017-11-17 北京京东尚科信息技术有限公司 Optimize the method and apparatus of the data store organisation of key value database
CN108306928A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 Session management methods, web server and computer readable storage medium
CN109766489A (en) * 2018-11-26 2019-05-17 福建新大陆支付技术有限公司 Data processing method, client, server and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150381737A1 (en) * 2014-06-30 2015-12-31 Davra Networks Limited Gateway device and a gateway system for an internet-of-things environment
CN106657394B (en) * 2017-02-10 2020-06-05 浪潮软件科技有限公司 Equipment information acquisition system and method based on Internet of things big data
CN110413546B (en) * 2019-06-19 2024-03-12 平安科技(深圳)有限公司 Redis-based data storage method, device and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170116125A1 (en) * 2015-10-26 2017-04-27 Salesforce.Com, Inc. Builder Program Code for In-Memory Cache
CN107357794A (en) * 2016-05-10 2017-11-17 北京京东尚科信息技术有限公司 Optimize the method and apparatus of the data store organisation of key value database
CN108306928A (en) * 2017-12-22 2018-07-20 努比亚技术有限公司 Session management methods, web server and computer readable storage medium
CN109766489A (en) * 2018-11-26 2019-05-17 福建新大陆支付技术有限公司 Data processing method, client, server and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
翟雅荣: ""基于容器的分布式融合通信服务器的设计与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》, pages 24 - 30 *
钱玉磊: ""基于MQTT的安全通信服务器的研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》, pages 10 - 29 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020253041A1 (en) * 2019-06-19 2020-12-24 平安科技(深圳)有限公司 Data storage method employing redis, apparatus, and computer-readable storage medium

Also Published As

Publication number Publication date
CN110413546B (en) 2024-03-12
WO2020253041A1 (en) 2020-12-24

Similar Documents

Publication Publication Date Title
CN110086636A (en) A kind of message distributing method based on mqtt, server and storage medium
CN102404127B (en) Method and device both for reminding of new message
CN106713116B (en) Information processing method, apparatus and system
US7299035B2 (en) Server device, mobile communications terminal, information transmitting system and information transmitting method
CN103905293A (en) Method and device for obtaining expression information
CN104778178B (en) A kind of application class method, apparatus and service server
CN109862063A (en) Distribution subscription matching process, device and storage medium based on MQTT
CN110113247A (en) Rich media information receive-transmit system, transmission, methods of exhibiting and terminal device
CN104579970B (en) A kind of strategy matching device of IPv6 messages
CN112187903B (en) Message pushing method and device and message service system
CN109254808A (en) Interface call method, device and computer readable storage medium
CN110597706A (en) Method and device for testing application program interface data abnormity
CN113037787A (en) Data processing method and device
US20170155739A1 (en) Advertisement data processing method and router
CN103577180A (en) Data processing method and data processing device
CN106878246A (en) A kind of method for managing resource and device
CN110413546A (en) Date storage method, device and computer readable storage medium based on redis
CN107423395A (en) Navigation data processing system
CN107786308B (en) Data transmission method and terminal device
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN109379179A (en) Method and apparatus for updating digital certificate
CN102769663B (en) Server, method and system for transmitting information
CN110858132B (en) Configuration security detection method and device for printing equipment
WO2016058385A1 (en) Information storage method and device, and terminal
CN110324426A (en) A kind of data capture method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant