CN112883010A - Redis-based IP library management method and device, computer equipment and storage medium - Google Patents

Redis-based IP library management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112883010A
CN112883010A CN202110140684.5A CN202110140684A CN112883010A CN 112883010 A CN112883010 A CN 112883010A CN 202110140684 A CN202110140684 A CN 202110140684A CN 112883010 A CN112883010 A CN 112883010A
Authority
CN
China
Prior art keywords
address value
ending
integer type
starting
redis database
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.)
Pending
Application number
CN202110140684.5A
Other languages
Chinese (zh)
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.)
Shanghai Qiniu Information Technology Co ltd
Original Assignee
Shanghai Qiniu Information Technology 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 Shanghai Qiniu Information Technology Co ltd filed Critical Shanghai Qiniu Information Technology Co ltd
Priority to CN202110140684.5A priority Critical patent/CN112883010A/en
Publication of CN112883010A publication Critical patent/CN112883010A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to an IP library management method, device, computer equipment and storage medium based on Redis, wherein the method comprises the following steps: splitting an IP sub-network address in an IP library to be managed and generating a starting IP address value and an ending IP address value; then, the starting IP address value and the ending IP address value are subjected to integer conversion and are respectively converted into an integer type starting IP address value and an integer type ending IP address value; and finally, storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database.

Description

Redis-based IP library management method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for managing an IP library based on Redis, a computer device, and a storage medium.
Background
IP is an abbreviation for internetworking protocol, the network layer protocol in the TCP/IP hierarchy. The purpose of designing IP is to improve the scalability of the network: firstly, the problem of the internet is solved, and interconnection and intercommunication of large-scale and heterogeneous networks are realized; and secondly, the coupling relation between the top network application and the bottom network technology is divided, so that the independent development of the top network application and the bottom network technology is facilitated. IP provides only a connectionless, unreliable, best-effort packet transport service for hosts according to the end-to-end design principle.
At present, manufacturers providing an ip library with an ip library storage method pack the ip and various attribute information of the ip library into a binary file, and solve the binary file through a program to provide a query ip, which has the following disadvantages: the storage mode and index of the ip and attribute information in the binary file need to be organized, the whole binary file needs to be read into a memory during query, one copy needs to be read when the file is used on multiple machines, the binary file needs to be analyzed by providing an SDK for each development language, the file needs to be sent to each application using an ip library during updating of the ip library, and the updating can be realized only by carrying out a new process under the condition that the application does not provide thermal updating, so that the service is interrupted.
Obviously, the current IP library management method has the technical problem that the efficient and quick management of the IP library cannot be realized.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a computer device, and a storage medium for managing an IP library based on Redis, which can implement efficient and fast management of the IP library.
The technical scheme of the invention is as follows:
a method of Redis-based IP library management, the method comprising:
step S100: splitting an IP subnet address in an IP library to be managed and generating a starting IP address value and an ending IP address value;
step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively;
step S300: and storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database.
Specifically, step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S311: taking the integer type ending IP address value as score based on a Sorted Set in an original Redis database;
step S312: taking the integer type starting IP address value as value based on a Sorted Set in an original Redis database;
step S313: storing the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generating the managed original Redis database.
Specifically, the IP sub-website in the IP library to be managed further includes a current IP attribute;
step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S321: taking the integer type starting IP address value as a key based on String in an original Redis database;
step S322: taking the current IP attribute as value based on String in an original Redis database;
step S323: storing the integer type starting IP address value as a key and the current IP attribute as a value in an original Redis database, and generating the managed original Redis database.
Specifically, step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively; the method specifically comprises the following steps:
step S210: binary conversion is carried out on all bytes of the initial IP address value and the ending IP address value, and a binary format initial IP address value and a binary format ending IP address value are respectively generated;
step S220: and performing integer conversion on the binary format starting IP address value and the binary format ending IP address value and respectively generating the integer type starting IP address value and the integer type ending IP address value.
Specifically, the method further comprises:
step S410: acquiring an IP website to be inquired;
step S420: converting the IP addresses to be inquired into integers and generating integer types of IP addresses to be inquired;
step S430: taking the integer type IP address to be inquired as a starting point of the Score to inquire in a Sorted set in the managed original Redis database, and judging whether an inquiry return value is returned or not;
step S440: if not, generating prompt information of the IP addresses to be inquired.
Step S450: if so, judging whether the IP address to be inquired is between a starting IP address value and an ending IP address value stored in the managed original Redis database;
step S460: if so, inquiring the attribute of the IP address to be inquired based on the managed original Redis database, and generating an attribute inquiry result.
Specifically, an IP library management apparatus based on Redis, the apparatus comprising:
the website splitting module is used for splitting the IP subnet address in the IP library to be managed and generating a starting IP address value and an ending IP address value;
the integer conversion module is used for performing integer conversion on the starting IP address value and the ending IP address value and respectively converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value;
and the Redis database generation module is used for storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database and generating a managed original Redis database.
Specifically, the Redis database generation module includes:
the first setting module is used for taking the integer type ending IP address value as score based on the Sorted Set in the original Redis database;
the second setting module is used for taking the integer type starting IP address value as value based on the Sorted Set in the original Redis database;
a first generating module, configured to store the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generate the managed original Redis database.
Specifically, the Redis database generation module includes: a
The third setting module is used for taking the integer type starting IP address value as a key based on String in an original Redis database;
a fourth setting module, configured to take the current IP attribute as value based on String in an original Redis database;
and the second generation module is used for storing the integer type starting IP address value as the key and the current IP attribute as the value in an original Redis database and generating the managed original Redis database.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above-described Redis-based IP library management method when the computer program is executed.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described Redis-based IP library management method.
The invention has the following technical effects:
according to the method, the device, the computer equipment and the storage medium for managing the IP library based on Redis, the IP subnet address in the IP library to be managed is firstly split, and a starting IP address value and an ending IP address value are generated; then, the starting IP address value and the ending IP address value are subjected to integer conversion and are respectively converted into an integer type starting IP address value and an integer type ending IP address value; and finally, storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database, so that the use of independent services, namely Redis is used as a carrier to store IP information, the query and management operation can be diffused to multiple machines in a network mode, the management can be completed without being limited to a single machine and without managing a file storage format, the management can be completed only by depending on the functions provided by Redis, simultaneously, multiple applications share the same Redis, the IP information is not required to be completely loaded into each application memory, the Redis can be operated by sdk of each open source on the market, the independent development of sdk for an IP library is not required, the service is not interrupted when the IP library is updated, a Redis also added from the library to provide higher reading efficiency, and the efficient and quick management of the IP library is realized.
Drawings
FIG. 1 is a flow diagram illustrating a Redis-based IP library management method in one embodiment;
FIG. 2 is a block diagram of a Redis-based IP library management apparatus in one embodiment;
FIG. 3 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The Redis-based IP library management method provided by the embodiment of the application can be applied to an application environment. The terminal splits the IP sub-network address in the IP library to be managed and generates a starting IP address value and an ending IP address value; performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively; and storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database.
The terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 1, there is provided a Redis-based IP library management method, the method comprising:
step S100: splitting an IP subnet address in an IP library to be managed and generating a starting IP address value and an ending IP address value;
specifically, for example, 118.116.7.0/24 was changed to 118.116.7.0 and 118.116.7.255. Wherein 118.116.7.0/24 is the IP sub-website address in the IP library to be managed.
118.116.7.0 and 118.116.7.255 are a start IP address value and an end IP address value, respectively.
Step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively;
specifically, 118.116.7.0 and 118.116.7.255 translate to 1987315456 and 1987315711 for a start IP address value and an end IP address value, respectively.
Step S300: and storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database.
Specifically, the IP sub-network address in the IP library to be managed is split and a starting IP address value and an ending IP address value are generated; then, the starting IP address value and the ending IP address value are subjected to integer conversion and are respectively converted into an integer type starting IP address value and an integer type ending IP address value; and finally, storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database, so that the use of independent services, namely Redis is used as a carrier to store IP information, the query and management operation can be diffused to multiple machines in a network mode, the management can be completed without being limited to a single machine and without managing a file storage format, the management can be completed only by depending on the functions provided by Redis, simultaneously, multiple applications share the same Redis, the IP information is not required to be completely loaded into each application memory, the Redis can be operated by sdk of each open source on the market, the independent development of sdk for an IP library is not required, the service is not interrupted when the IP library is updated, a Redis also added from the library to provide higher reading efficiency, and the efficient and quick management of the IP library is realized.
In one embodiment, step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S311: taking the integer type ending IP address value as score based on a Sorted Set in an original Redis database;
in particular, sorted set is implementing a range lookup. The integer type end IP address VALUE is treated as SCORE by using ZADD KEY _ NAME SCORE VALUE.
Step S312: taking the integer type starting IP address value as value based on a Sorted Set in an original Redis database;
specifically, the integer type start IP address VALUE is treated as VALUE by using ZADD KEY _ NAME SCORE VALUE.
Step S313: storing the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generating the managed original Redis database.
Further, the operation corresponding to 118.116.7.0/24 Sichuan Chengdu telecom is:
ZADD dbname 19873157111987315456 SET dbname 1987315456 'China Sichuan Chengdu Telecommunications'.
In one embodiment, the IP sub-website in the IP library to be managed further includes a current IP attribute;
step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S321: taking the integer type starting IP address value as a key based on String in an original Redis database;
specifically, in String, the integer type start IP address VALUE is taken as a KEY through SET KEY _ NAME VALUE.
Step S322: taking the current IP attribute as value based on String in an original Redis database;
specifically, in String, the current IP attribute is then treated as VALUE through SET KEY _ NAME VALUE.
Step S323: storing the integer type starting IP address value as a key and the current IP attribute as a value in an original Redis database, and generating the managed original Redis database.
In one embodiment, step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively; the method specifically comprises the following steps:
step S210: binary conversion is carried out on all bytes of the initial IP address value and the ending IP address value, and a binary format initial IP address value and a binary format ending IP address value are respectively generated;
specifically, 118.116.7.0, for example, translates to the following: 111011011101000000011100000000, respectively;
step S220: and performing integer conversion on the binary format starting IP address value and the binary format ending IP address value and respectively generating the integer type starting IP address value and the integer type ending IP address value.
Specifically, the integer conversion is to convert 111011011101000000011100000000 into a 32-bit unsigned integer, which is: 1987315456, respectively;
further, the segment integer type start IP address value and the integer type end IP address value of 118.116.7.0/24 are respectively: 1987315456, respectively; 1987315711.
in one embodiment, the method further comprises:
step S410: acquiring an IP website to be inquired;
step S420: converting the IP addresses to be inquired into integers and generating integer types of IP addresses to be inquired;
specifically, ZRANGEBYSCORE KEY _ NAME min max [ WITHSCORES ] [ LIMIT offset count ] in the sorted set is first queried with the integer value of the IP to be looked up as the score starting point, returning only one value.
Say 118.116.7.1, is converted to 1987315457 and then queried in sorted set.
Step S430: taking the integer type IP address to be inquired as a starting point of the Score to inquire in a Sorted set in the managed original Redis database, and judging whether an inquiry return value is returned or not;
zrangebyscore dbname 1987315457+ inf limit 01 indicates that the query Score is greater than or equal to the member of the ip integer value, and only 1 value needs to be returned.
Step S440: if not, generating prompt information of the IP addresses to be inquired.
In this step, if the judgment is negative, the query return value is not returned. At this time, the IP address is not to be inquired, so that the prompt message of the IP address not to be inquired is generated.
Step S450: if so, judging whether the IP address to be inquired is between a starting IP address value and an ending IP address value stored in the managed original Redis database;
in this step, the judgment is yes, that is, the return query return value is judged to exist. Judging whether the IP address to be inquired is between a starting IP address value and an ending IP address value stored in the managed original Redis database.
Step S460: if so, inquiring the attribute of the IP address to be inquired based on the managed original Redis database, and generating an attribute inquiry result.
In this step, if the determination is not shown, in order to determine that the IP address to be queried is between the start IP address value and the end IP address value stored in the managed original Redis database, in this interval, the attribute of the network segment is queried using the start value of the network segment according to the following command:
get dbname 1987315456 results in the property of the ip.
In one embodiment, the method for Redis-based IP library management further comprises:
step S510: acquiring a network segment to be modified;
in this embodiment, it is assumed that the segment interval to be modified is 15 to 25.
Step S520: comparing the network segment to be modified with the existing network segment in the managed original Redis database and finding out an overlapped network segment;
in this step, the existing network segment intervals in the managed original Redis database are 1-20 and 25-30. Comparing 1-20 and 25-30 with segment intervals 15-25 of the segment to be modified, wherein the segment overlapping is as follows: 15-20 and 25.
Step S530: deleting the overlapped network segments in the existing network segments and generating the residual network segments which can be reserved;
then, deleting the overlapped network segments 15-20 and 25 from the existing network segment intervals 1-20 and 25-30, and generating the residual reserved network segments 1-14 and 26-30;
step S540: and logging the residual network segment capable of being reserved and the network segment to be modified, and generating a logged network segment.
In particular, the remaining reservable network segments 1-14 and 26-30 and the network segment 15-25 to be modified are logged and a new network segment, i.e. the logged network segment, is generated.
In one embodiment, the method for Redis-based IP library management further comprises: ZREM KEY _ NAME member is deleted directly using ZREM.
In one embodiment, an IP library management apparatus based on Redis, as shown in fig. 2, the apparatus includes:
the website splitting module is used for splitting the IP subnet address in the IP library to be managed and generating a starting IP address value and an ending IP address value;
the integer conversion module is used for performing integer conversion on the starting IP address value and the ending IP address value and respectively converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value;
and the Redis database generation module is used for storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database and generating a managed original Redis database.
In one embodiment, the Redis database generation module includes:
the first setting module is used for taking the integer type ending IP address value as score based on the Sorted Set in the original Redis database;
the second setting module is used for taking the integer type starting IP address value as value based on the Sorted Set in the original Redis database;
a first generating module, configured to store the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generate the managed original Redis database.
In one embodiment, the Redis database generation module includes: a
The third setting module is used for taking the integer type starting IP address value as a key based on String in an original Redis database;
a fourth setting module, configured to take the current IP attribute as value based on String in an original Redis database;
and the second generation module is used for storing the integer type starting IP address value as the key and the current IP attribute as the value in an original Redis database and generating the managed original Redis database.
In one embodiment, the apparatus further comprises:
the network segment to be modified acquisition module is used for acquiring the network segment to be modified;
an overlapped network segment finding module, configured to compare the network segment to be modified with an existing network segment in the managed original Redis database and find an overlapped network segment;
a remaining network segment generation module for deleting the overlapped network segments in the existing network segments and generating remaining network segments;
and the network segment entry module is used for entering the residual reserved network segment and the network segment to be modified and generating an entered network segment.
In one embodiment, as shown in fig. 3, a computer device includes a memory storing a computer program and a processor implementing the steps of the above-mentioned Redis-based IP library management method when the processor executes the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the above-described Redis-based IP library management method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for Redis-based IP library management, the method comprising:
step S100: splitting an IP subnet address in an IP library to be managed and generating a starting IP address value and an ending IP address value;
step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively;
step S300: and storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database.
2. The Redis-based IP library management method according to claim 1, wherein step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S311: taking the integer type ending IP address value as score based on a Sorted Set in an original Redis database;
step S312: taking the integer type starting IP address value as value based on a Sorted Set in an original Redis database;
step S313: storing the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generating the managed original Redis database.
3. The Redis-based IP library management method according to claim 1, wherein the IP sub-site address in the IP library to be managed further comprises a current IP attribute;
step S300: storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database, and generating a managed original Redis database; the method specifically comprises the following steps:
step S321: taking the integer type starting IP address value as a key based on String in an original Redis database;
step S322: taking the current IP attribute as value based on String in an original Redis database;
step S323: storing the integer type starting IP address value as a key and the current IP attribute as a value in an original Redis database, and generating the managed original Redis database.
4. The Redis-based IP library management method according to claim 1, wherein step S200: performing integer conversion on the starting IP address value and the ending IP address value and converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value respectively; the method specifically comprises the following steps:
step S210: binary conversion is carried out on all bytes of the initial IP address value and the ending IP address value, and a binary format initial IP address value and a binary format ending IP address value are respectively generated;
step S220: and performing integer conversion on the binary format starting IP address value and the binary format ending IP address value and respectively generating the integer type starting IP address value and the integer type ending IP address value.
5. A Redis-based IP library management method according to any of claims 1-4, wherein the method further comprises:
step S410: acquiring an IP website to be inquired;
step S420: converting the IP addresses to be inquired into integers and generating integer types of IP addresses to be inquired;
step S430: taking the integer type IP address to be inquired as a starting point of the Score to inquire in a Sorted set in the managed original Redis database, and judging whether an inquiry return value is returned or not;
step S440: if not, generating prompt information of the IP addresses to be inquired.
Step S450: if so, judging whether the IP address to be inquired is between a starting IP address value and an ending IP address value stored in the managed original Redis database;
step S460: if so, inquiring the attribute of the IP address to be inquired based on the managed original Redis database, and generating an attribute inquiry result.
6. A Redis-based IP library management apparatus, the apparatus comprising:
the website splitting module is used for splitting the IP subnet address in the IP library to be managed and generating a starting IP address value and an ending IP address value;
the integer conversion module is used for performing integer conversion on the starting IP address value and the ending IP address value and respectively converting the starting IP address value and the ending IP address value into an integer type starting IP address value and an integer type ending IP address value;
and the Redis database generation module is used for storing the integer type starting IP address value and the integer type ending IP address value in an original Redis database and generating a managed original Redis database.
7. The Redis-based IP library management apparatus according to claim 6, wherein the Redis database generation module comprises:
the first setting module is used for taking the integer type ending IP address value as score based on the Sorted Set in the original Redis database;
the second setting module is used for taking the integer type starting IP address value as value based on the Sorted Set in the original Redis database;
a first generating module, configured to store the integer type ending IP address value as score and the integer type starting IP address value as value in an original Redis database, and generate the managed original Redis database.
8. The Redis-based IP library management apparatus according to claim 6, wherein the Redis database generation module comprises: a
The third setting module is used for taking the integer type starting IP address value as a key based on String in an original Redis database;
a fourth setting module, configured to take the current IP attribute as value based on String in an original Redis database;
and the second generation module is used for storing the integer type starting IP address value as the key and the current IP attribute as the value in an original Redis database and generating the managed original Redis database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202110140684.5A 2021-02-02 2021-02-02 Redis-based IP library management method and device, computer equipment and storage medium Pending CN112883010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110140684.5A CN112883010A (en) 2021-02-02 2021-02-02 Redis-based IP library management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110140684.5A CN112883010A (en) 2021-02-02 2021-02-02 Redis-based IP library management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112883010A true CN112883010A (en) 2021-06-01

Family

ID=76052502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110140684.5A Pending CN112883010A (en) 2021-02-02 2021-02-02 Redis-based IP library management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112883010A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040033A (en) * 2021-10-26 2022-02-11 卓望数码技术(深圳)有限公司 IP address processing method, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040033A (en) * 2021-10-26 2022-02-11 卓望数码技术(深圳)有限公司 IP address processing method, system and storage medium

Similar Documents

Publication Publication Date Title
EP1750469B1 (en) Automatic mobile device capability management
EP2180740B1 (en) Method and device for instantiating management object of management tree in terminal device
CN112468309B (en) Domain name management system based on intelligent contract
CN111399756B (en) Data storage method, data downloading method and device
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN109729183B (en) Request processing method, device, equipment and storage medium
CN112468525B (en) Domain name management system based on block chain
CN114389874B (en) Response method and device for cloud application service, server and storage medium
EP3054625B1 (en) M2m data query and scheduling method, query and scheduling device and system
CN113507475B (en) Cross-domain access method and device
WO2022105139A1 (en) Database data object relation graph generation method and apparatus, and device, and medium
CN112883010A (en) Redis-based IP library management method and device, computer equipment and storage medium
CN112507010B (en) Service data processing method and device, computer equipment and storage medium
CN109684303B (en) Communication code attribution inquiry method and device, computer equipment and storage medium
CN110855627B (en) Application deployment method, device, equipment and medium
CN114238240B (en) Distributed multi-cluster data storage method and device and storage medium
CN114071448B (en) Data transmission method, related network node and storage medium
CN112350875B (en) Centralized management configuration method and device for configuration data
CN112131263B (en) Software package acquisition method, system, device, electronic equipment and storage medium
CN113420241A (en) Page access method and device, electronic equipment and storage medium
CN106993036B (en) Running environment information processing method and switch
CN112468600B (en) Application message notification method, system and storage medium based on network matrix
CN112073548B (en) Method and apparatus for solving skylight problems
CN115858551B (en) Memory management method, device, equipment and storage medium based on LDAP
CN112688959B (en) Address protection method and device and electronic equipment

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