A Redis data management method, device, equipment, storage medium and product

By providing an operation interface in the browser and managing the connection between the server and the browser, the problem of cross-platform incompatibility of existing Redis visualization tools is solved, cross-platform management of Redis data is realized, and convenient and intuitive management interface is provided.

CN114936246BActive Publication Date: 2025-05-09CCB FINTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210557815.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-19
Publication Date
2025-05-09
Estimated Expiration
2042-05-19

AI Technical Summary

Technical Problem

The existing Redis visual management tools cannot be used cross-platformly on Windows, Mac, Linux, Android or iPhone, and the corresponding version of the tools needs to be installed according to different system platforms.

Method used

By providing an operation interface in the browser, the server connects to the browser, receives access operations, including authentication information, establishes a connection between the browser operation interface and the Redis database, displays key information in the Redis database, and supports adding and modifying key information.

Benefits of technology

It realizes cross-platform management of Redis data, solves the problem of cross-platform incompatibility of existing tools, and provides a convenient and intuitive interface for management of Redis data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936246B_ABST
    Figure CN114936246B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment, storage medium and product for managing Redis data. The present invention relates to the field of computer technology. The method is executed by a management server, which is connected to a browser to provide an operation interface; the method comprises: receiving an access operation through the operation interface of the browser, the access operation comprising identity authentication information; establishing a connection between the operation interface of the browser and a Redis database according to the identity authentication information and predetermined address information; if the Redis database is successfully connected, the key information in the Redis database is displayed. The technical solution of the present invention can be run in a browser, thereby achieving cross-platform operation and solving the problem of cross-platform incompatibility of previous visualization tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a Redis data management method, device, equipment, storage medium and product. Background Art

[0002] With the development of the Internet, the Redis database has been widely used. Redis is an open source, high-performance non-relational key-value database written in C language. It is very fast and widely used in cache. To visually manage Redis data, you need to use a special visual management tool.

[0003] Existing Redis visualization management tools are generally developed in a specific language and run on specific system platforms such as Windows or Mac. Before using these software tools on these system platforms, you need to install the corresponding version of the tool. Therefore, existing Redis visualization tools cannot be used across platforms on Windows, Mac, Linux, Android or iPhone. Summary of the invention

[0004] The present invention provides a Redis data management method, device, equipment, storage medium and product, which can be run in a browser, thereby achieving cross-platform operation and solving the problem of cross-platform incompatibility of previous visualization tools.

[0005] According to one aspect of the present invention, a method for managing Redis data is provided, the method being executed by a management server, the management server being connected to a browser and being used to provide an operation interface; the method comprising:

[0006] Receiving an access operation through an operation interface of a browser, wherein the access operation includes identity authentication information;

[0007] Establishing a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information;

[0008] If the Redis database is connected successfully, the key information in the Redis database is displayed.

[0009] Optionally, after displaying the key information in the Redis database, the method further includes:

[0010] The key information is added to the Redis database in response to the key information adding operation through the operation interface.

[0011] Optionally, after displaying the key information in the Redis database, the method further includes:

[0012] The key information name of the existing key information in the Redis database is changed by responding to the key information modification operation through the operation interface.

[0013] Optionally, after establishing a connection between the browser operation interface and the Redis database according to the identity authentication information and the predetermined address information, the method further includes:

[0014] Store the connection information of the created Redis database in the preset cache.

[0015] Optionally, after storing the created connection information of the Redis database in a preset cache, the method further includes:

[0016] In response to a data query request through the operation interface, connection information with the Redis database is searched from the preset cache.

[0017] Optionally, after the Redis database is successfully connected, the method further includes:

[0018] The operation interface responds to the keyword input operation to perform a fuzzy search on the keyword to obtain a matching result for the keyword in the Redis database.

[0019] According to another aspect of the present invention, a Redis data management device is provided, the device is configured on a management server, the management server is connected to a browser, and is used to provide an operation interface; the device comprises:

[0020] An access operation receiving module, used to receive an access operation through an operation interface of a browser, wherein the access operation includes identity authentication information;

[0021] A connection establishment module, used to establish a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information;

[0022] The key information display module is used to display the key information in the Redis database if the Redis database is connected successfully.

[0023] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0024] at least one processor; and

[0025] a memory communicatively connected to the at least one processor; wherein,

[0026] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the Redis data management method described in any embodiment of the present invention.

[0027] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the Redis data management method described in any embodiment of the present invention when executed.

[0028] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements the Redis data management method as described in any one of the embodiments of the present invention.

[0029] The technical solution of the embodiment of the present invention receives an access operation through the operation interface of the browser, and the access operation includes identity authentication information; establishes a connection between the operation interface of the browser and the Redis database according to the identity authentication information and predetermined address information; if the connection to the Redis database is successful, the key information in the Redis database is displayed. The technical solution of the present invention can be run in a browser, thereby achieving cross-platform operation, solving the problem of cross-platform incompatibility of previous visualization tools.

[0030] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 This is a flowchart of a Redis data management method provided according to Embodiment 1 of the present invention;

[0033] Figure 2 This is a flowchart of a Redis data management method provided according to Embodiment 2 of the present invention;

[0034] Figure 3 This is a schematic diagram of the overall architecture of a Redis data management method provided according to Embodiment 2 of the present invention;

[0035] Figure 4 This is a schematic diagram of the structure of a Redis data management device provided according to Embodiment 3 of the present invention;

[0036] Figure 5 It is a structural schematic diagram of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0039] Embodiment 1

[0040] Figure 1 1 is a flowchart of a method for managing Redis data provided according to Embodiment 1 of the present invention. This embodiment is applicable to managing Redis data. The method can be executed by a Redis data management device. The Redis data management device can be implemented in the form of hardware and / or software. The Redis data management device can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0041] S110. Receive an access operation through an operation interface of a browser, where the access operation includes identity authentication information.

[0042] The embodiment of the present invention can be executed by the management server, which is connected to the browser to provide an operation interface. Redis is an open source, high-performance non-relational key-value pair database written in C language. It is very fast and is widely used in cache. The embodiment of the present invention can adopt the technology of front-end and back-end separation, such as the management server can be developed in Java language, and the high-performance open source client Lettuce can be used as the connector of Redis on the framework, and the bottom layer can use the Netty framework to further improve the performance; the front-end browser can use React and Antd to build the UI, so that the operation interface is beautiful and the performance is faster. The management server can include a Redis connection service module (also called RedisConnection) and a Redis data service module (also called Redis Data). The Redis Connection service can be responsible for Redis connection management, and can query, create, and delete Redis connections. The Redis Data service can be responsible for Redis data management, such as adding data types of Redis data, editing, deleting, renaming, setting Redis data TTL (lifetime) and refreshing Redis data.

[0043] Among them, the operation interface can be a page for operating in the front-end page of the browser. The operation interface in this embodiment can support switching between Chinese and English. The access operation can be an access operation initiated by the Redis connection service module in the management server. The access operation may include identity authentication information. The identity authentication information may include information such as address, port, user name, and password.

[0044] In this embodiment, the management server is connected to the browser, and receives the access operation initiated by the Redis connection service module through the browser's operation interface.

[0045] S120. Establish a connection between the browser operation interface and the Redis database according to the identity authentication information and the predetermined address information.

[0046] The address information may be the address information of the Redis database for accessing the browser's operation interface in advance. In this embodiment, the connection between the browser's operation interface and the Redis database can be established based on the identity authentication information and the predetermined address information, and both stand-alone and cluster modes of connection with the Redis database can be supported.

[0047] In this embodiment, the Redis connection service module in the management server can establish a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information in the access operation.

[0048] In addition, the Redis connection service module in the management server of this embodiment can save the Redis database connection record of the browser operation interface in a preset cache database, so that the added connection record can be directly seen in the list, and the data management can be performed by directly clicking the connection, which is more convenient for data management. Exemplarily, all the connection data in this embodiment can be saved in the Database database through the persistence layer framework Mybatis.

[0049] S130. If the Redis database is connected successfully, the key information in the Redis database is displayed.

[0050] The key information may be the key information in the successfully connected Redis database. The key information may include the number of key values ​​in all Database databases in the current Redis database. Database is the memory database in the Redis database.

[0051] In this embodiment, if the Redis database is successfully connected, the system will prompt that the connection is successful, and you can click OK to add the connection immediately; if it prompts that the connection fails, it may be that the identity information of the access operation is incorrect, and you can modify the parameters and add the connection again.

[0052] In this embodiment, when the connection is successful, all successfully connected Redis databases can be displayed on the left side of the interface. Clicking the connection system will display all the database databases under the current Redis database, and at the same time, all the key information under the current database database, such as the number of keys. Among them, the key information list under the current database database can be displayed in pages, and sliding the page up will automatically refresh the data.

[0053] The technical solution of the embodiment of the present invention receives an access operation through the operation interface of the browser, and the access operation includes identity authentication information; establishes a connection between the operation interface of the browser and the Redis database according to the identity authentication information and predetermined address information; if the connection to the Redis database is successful, the key information in the Redis database is displayed. The technical solution of the present invention can be run in a browser, thereby achieving cross-platform operation, solving the problem of cross-platform incompatibility of previous visualization tools.

[0054] Embodiment 2

[0055] Figure 21 is a flowchart of a method for managing Redis data according to Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiment. The specific optimization is: after displaying the key information in the Redis database, the method further includes: responding to the key information adding operation through the operation interface to add the key information in the Redis database. Figure 2 As shown, the method includes:

[0056] S210: Receive an access operation through an operation interface of a browser, where the access operation includes identity authentication information.

[0057] S220. Establish a connection between the browser operation interface and the Redis database according to the identity authentication information and the predetermined address information.

[0058] S230. If the Redis database is connected successfully, the key information in the Redis database is displayed.

[0059] S240. Respond to the key information adding operation through the operation interface to add key information in the Redis database.

[0060] The key information adding operation may be performed by the Redis data service module in the management server. In this embodiment, all commonly used data types of Redis may be supported, for example, data types may include String, List, Set, ZSet, Hash and other data types.

[0061] Exemplarily, you can click the Database database under the current Redis database on the left side of the browser's operation interface, click New Redis Key, a pop-up window for adding Redis data will pop up, select the data type to be added, enter the value, and click OK to add it successfully, thereby completing the addition of key information in the Redis database.

[0062] Among them, in this embodiment, all data inputs have data verification, and if the verification fails, there will be a striking error prompt. For example, non-empty verification, such as port passwords, etc. For example, the input needs to be a pure numeric type, and letters are not allowed. It can be understood that it is related to the type defined in this column of data in the database, and the verification will fail if it does not meet the requirements.

[0063] In this embodiment, the Redis data service module in the management server responds to the key information adding operation of the Redis data service module through the operation interface of the browser to add the key information in the Redis database.

[0064] For example, the overall architecture diagram of this embodiment is as follows: Figure 3As shown. In this embodiment, the management server is connected to the browser to provide an operation interface. The browser accesses the front-end page to perform operations, wherein all data is passed to the back-end in the form of JSON messages. The Redis Connection service can be responsible for Redis connection management, and can query, create, and delete Redis connections, and display all Redis Databases and Redis Keys under the current connection. The created Redis connection will be placed in the Redis Connection cache, and all connection data will be saved in the H2DB database through the persistence layer framework Mybatis; the Redis Data service can be responsible for Redis data management. When querying data, first access the Redis Connection cache, find the Redis connection, and then query the data in Redis through the Redis connection, and return the queried data to the front-end page in the form of a JSON message. The page renders the page according to the data and finally presents it to the user.

[0065] The technical solution of the embodiment of the present invention receives an access operation through the operation interface of the browser, and the access operation includes identity authentication information; establishes a connection between the operation interface of the browser and the Redis database according to the identity authentication information and predetermined address information; if the connection of the Redis database is successful, the key information in the Redis database is displayed, and the key information adding operation is responded to through the operation interface to add the key information in the Redis database. The technical solution of the present invention can be run in a browser, thereby achieving cross-platform operation, solving the problem of cross-platform incompatibility of previous visualization tools, and conveniently and intuitively managing the data in Redis through the operation interface, thereby improving the work efficiency of users.

[0066] In this embodiment, optionally, after displaying the key information in the Redis database, the method further includes: responding to a key information modification operation through the operation interface to change the key information name of the existing key information in the Redis database.

[0067] The key information modification operation may be a key information modification operation performed by a Redis data service module in the management server. The existing key information may be key information already saved in the Redis database. Changing the key information name may be changing the name of the key information, which may be understood as renaming the name of the key information.

[0068] In addition, for Redis data types, such as List, Set, ZSet, and Hash data types, this embodiment can support operations of adding and modifying records in corresponding data.

[0069] In this embodiment, after displaying the key information in the Redis database, the Redis data service module in the management server responds to the key information modification operation of the Redis data service module through the browser's operation interface, and can change the key information name of the existing key information in the Redis database.

[0070] Through such settings, this solution can manage the data in Redis conveniently and intuitively through configurable processing of Redis data, thereby improving user work efficiency.

[0071] In this embodiment, optionally, after establishing a connection between the operation interface of the browser and the Redis database according to the identity authentication information and the predetermined address information, the method further includes: storing the created connection information of the Redis database in a preset cache.

[0072] The connection information may be the connection information between the browser's operation interface and the Redis database. The preset cache may be a database pre-set by the user for storing the connection information.

[0073] In this embodiment, after the connection between the browser's operation interface and the Redis database is established according to the identity authentication information and the predetermined address information, the Redis connection service module in the management server stores the created connection information of the Redis database in a preset cache.

[0074] Through such a setting, this solution can store the connection information in the preset cache, so that you can directly see the saved connection records in the list later and directly click on the connection to manage the data.

[0075] In this embodiment, optionally, after storing the connection information of the created Redis database in a preset cache, the method further includes: responding to a data query request through the operation interface and searching for connection information with the Redis database from the preset cache.

[0076] The data query request may be a request for data search by a Redis data service module in the management server.

[0077] In this embodiment, the Redis data service module in the management server can search for data, and the operation interface responds to the data query request of the Redis data service module and searches for connection information with the Redis database from the preset Redis data connection cache.

[0078] Through such a setting, this solution can search and save Redis data connection records in the Redis data connection cache, making it easier for users to find the required data.

[0079] In this embodiment, optionally, after the Redis database is successfully connected, the method further includes: responding to a keyword input operation through the operation interface to perform a fuzzy search on the keyword to obtain a matching result for the keyword in the Redis database.

[0080] Among them, the keyword input operation can be a search operation performed by the Redis data service module in the management server. The matching result can be the corresponding data result in the Redis database obtained by fuzzy searching the keyword. In this embodiment, the Redis data service module returns the queried data to the front-end operation page in the form of a JSON message.

[0081] In this embodiment, the Redis data service module in the management server responds to the keyword input operation through the operation interface, performs a fuzzy search on the keyword, and obtains the matching result of the keyword in the Redis database.

[0082] Exemplarily, in this embodiment, the Redis data service module in the management server performs a fuzzy search for the Key in Redis based on the keyword. The keyword can be entered in the input box above the operation interface and click query to search based on the keyword.

[0083] Through such a setting, this solution allows users to perform fuzzy search by entering keywords, making it easier for users to query Redis data in the Redis database, manage data in Redis more conveniently and intuitively, and improve user work efficiency.

[0084] Embodiment 3

[0085] Figure 4 1 is a schematic diagram of a structure of a Redis data management device provided according to Embodiment 3 of the present invention. The device is configured on a management server, and the management server is connected to a browser to provide an operation interface; Figure 4 As shown, the device comprises:

[0086] An access operation receiving module 410 is used to receive an access operation through an operation interface of a browser, wherein the access operation includes identity authentication information;

[0087] A connection establishment module 420, used to establish a connection between the browser operation interface and the Redis database according to the identity authentication information and the predetermined address information;

[0088] The key information display module 430 is used to display the key information in the Redis database if the Redis database connection is successful.

[0089] Optionally, after displaying the key information in the Redis database, the device further includes:

[0090] The key information adding module is used to respond to the key information adding operation through the operation interface to add key information in the Redis database.

[0091] Optionally, the device further comprises:

[0092] The key information modification module is used to respond to the key information modification operation through the operation interface after displaying the key information in the Redis database, so as to change the key information name of the existing key information in the Redis database.

[0093] Optionally, the device further comprises:

[0094] The connection information cache module is used to store the created connection information of the Redis database in a preset cache after establishing a connection between the operation interface of the browser and the Redis database according to the identity authentication information and the predetermined address information.

[0095] Optionally, the device further comprises:

[0096] The data query module is used to store the connection information of the created Redis database in the preset cache, and then respond to the data query request through the operation interface to search for the connection information with the Redis database from the preset cache.

[0097] Optionally, the device further comprises:

[0098] The keyword search module is used to respond to the keyword input operation through the operation interface after the Redis database is successfully connected to perform a fuzzy search on the keyword to obtain a matching result for the keyword in the Redis database.

[0099] A Redis data management device provided in an embodiment of the present invention can execute a Redis data management method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0100] Embodiment 4

[0101] Figure 5is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0102] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0103] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0104] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for managing Redis data.

[0105] In some embodiments, the management method of Redis data may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the management method of Redis data described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the management method of Redis data in any other appropriate manner (e.g., by means of firmware).

[0106] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0107] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0108] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0109] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0110] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0111] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0112] Embodiment 5

[0113] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements a Redis data management method as provided in any embodiment of the present application.

[0114] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0116] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for managing Redis data, characterized in that: The method is executed by a management server, which is connected to a browser and is used to provide an operation interface; the method includes: Receiving an access operation through an operation interface of a browser, wherein the access operation includes identity authentication information; Establishing a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information; If the Redis database is connected successfully, the key information in the Redis database is displayed; After displaying the key information in the Redis database, the method further includes: Responding to a key information adding operation through the operation interface to add key information in the Redis database; After establishing a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information, the method further includes: Store the connection information of the created Redis database in the preset cache; After the Redis database is successfully connected, the method further includes: The operation interface responds to the keyword input operation to perform a fuzzy search on the keyword to obtain a matching result for the keyword in the Redis database.

2. The method according to claim 1, characterized in that: After displaying the key information in the Redis database, the method further includes: The key information name of the existing key information in the Redis database is changed by responding to the key information modification operation through the operation interface.

3. The method according to claim 1, characterized in that After storing the connection information of the created Redis database in the preset cache, the method further includes: In response to a data query request through the operation interface, connection information with the Redis database is searched from the preset cache.

4. A Redis data management device, characterized in that: The device is configured on a management server, which is connected to a browser and is used to provide an operation interface; it includes: An access operation receiving module, used to receive an access operation through an operation interface of a browser, wherein the access operation includes identity authentication information; A connection establishment module, used to establish a connection between the browser's operation interface and the Redis database according to the identity authentication information and the predetermined address information; A key information display module, used to display the key information in the Redis database if the Redis database connection is successful; A key information adding module, configured to respond to a key information adding operation through the operation interface after displaying the key information in the Redis database, so as to add the key information in the Redis database; A connection information cache module, used for storing the created connection information of the Redis database into a preset cache after establishing a connection between the operation interface of the browser and the Redis database according to the identity authentication information and the predetermined address information; The keyword search module is used to respond to the keyword input operation through the operation interface after the Redis database is successfully connected to perform a fuzzy search on the keyword to obtain a matching result for the keyword in the Redis database.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the Redis data management method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the Redis data management method according to any one of claims 1 to 3 when executed.

7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the Redis data management method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method and apparatus for analyzing database access request

    CN104866597A

  • Data processing method and device applied to database

    CN106407351A