CN112860679A - Equipment information management method and device, electronic equipment and storage medium - Google Patents

Equipment information management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112860679A
CN112860679A CN202110279697.0A CN202110279697A CN112860679A CN 112860679 A CN112860679 A CN 112860679A CN 202110279697 A CN202110279697 A CN 202110279697A CN 112860679 A CN112860679 A CN 112860679A
Authority
CN
China
Prior art keywords
information
equipment
database
validity
storage period
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
CN202110279697.0A
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.)
Tianyi Shilian Technology Co ltd
Original Assignee
CENTURY DRAGON INFORMATION NETWORK 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 CENTURY DRAGON INFORMATION NETWORK CO LTD filed Critical CENTURY DRAGON INFORMATION NETWORK CO LTD
Priority to CN202110279697.0A priority Critical patent/CN112860679A/en
Publication of CN112860679A publication Critical patent/CN112860679A/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
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a device information management method, a device, electronic equipment and a storage medium, which are used for solving the technical problems that data cannot be cleaned in time and the data cleaning timeliness is poor in the prior art; the method comprises the following steps: receiving a report request of preset equipment sent by a client; the reporting request carries equipment information; verifying the validity of the equipment information; when the verification is passed, acquiring a storage period of the equipment; acquiring weighted packet information corresponding to a storage period; calculating the survival validity period of the equipment information according to the weighted packet information and the storage period; storing the equipment information to a database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.

Description

Equipment information management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of information management technologies, and in particular, to a device information management method and apparatus, an electronic device, and a storage medium.
Background
In practical applications, in order to facilitate management of a device, device information is generally uploaded to a server or a cloud in a specific format for storage management, so that when related information of the device needs to be acquired, the related information is queried from the server or the cloud.
The existing equipment information management method mainly comprises the following steps:
1) the user opens the APP software of the equipment terminal and inputs key information such as an account number/a password to complete login;
2) after the login is successful, the APP terminal initiates equipment information reporting and requests an equipment information reporting interface;
3) the interface domain name is analyzed by a local area network or public network DNS server to obtain a public network IP corresponding to the domain name, which is generally a gateway entry IP address such as LVS or Nginx;
4) after receiving the request, the LVS/Nginx gateway forwards the request agent to a real API service end node;
5) the API server receives the request, responds to the request according to the data read-write separation principle and feeds back information:
if the request is a data writing request, such as data insertion, data updating and data deletion, the MySQL master node is requested to store data; meanwhile, according to a MySQL master-slave synchronization mechanism, synchronizing the data of the master node to the slave library node;
and if the request is a data reading request, requesting the MySQL slave node to return a query result.
However, the above method has the following problems:
1) historical dirty data redundancy: the table data volume is increased along with the increase of services, historical data occupy a large amount of storage space, and cannot be cleaned effectively or cleaned by setting a DBA timing script, so that the historical data cannot be cleaned in time, and the cleaning timeliness is low.
2) There are system performance bottlenecks: the large amount of redundant data causes the reduction of data retrieval efficiency and reduces the query performance of the data.
Disclosure of Invention
The invention provides a device information management method and device, electronic equipment and a storage medium, which are used for solving the technical problems that data cannot be cleaned in time and the data cleaning timeliness is poor in the prior art.
The invention provides an equipment information management method, which is applied to an interface server, wherein the interface server is connected with a client and a database; the method comprises the following steps:
receiving a report request of preset equipment sent by the client; the reporting request carries equipment information;
carrying out validity check on the equipment information;
when the verification is passed, acquiring a storage period of the equipment;
acquiring weighted packet information corresponding to the storage period;
calculating the survival validity period of the equipment information according to the weighted packet information and the storage period;
storing the equipment information to the database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
Optionally, the device information includes user login information, a device code, operating system information, client application version information, a network mode, an access application ID, and a check token.
Optionally, the step of obtaining a storage period of the device includes:
sending the device code to the database;
and receiving the storage period of the equipment returned by the database based on the equipment code.
Optionally, the interface server is further connected with a preset configuration center; the step of obtaining the weighted packet information corresponding to the storage period includes:
sending a query request to the configuration center;
and receiving the weighted packet information corresponding to the storage period returned by the configuration center based on the query request.
Optionally, the step of storing the device information to the database according to the validity period of survival includes:
generating a reporting log of the equipment information;
and sending the equipment information and the report log to the database according to the survival validity period.
The embodiment of the invention also provides an equipment information management device which is applied to an interface server, wherein the interface server is connected with the client and the database; the device comprises:
a report request receiving module, configured to receive a report request of a preset device sent by the client; the reporting request carries equipment information;
the validity checking module is used for checking the validity of the equipment information;
the storage period acquisition module is used for acquiring the storage period of the equipment after the verification is passed;
the weighted packet information acquisition module is used for acquiring weighted packet information corresponding to the storage period;
a validity-to-live acquiring module, configured to calculate a validity-to-live of the device information according to the weighted packet information and the storage period;
the storage module is used for storing the equipment information to the database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
Optionally, the device information includes user login information, a device code, operating system information, client application version information, a network mode, an access application ID, and a check token.
Optionally, the storage period obtaining module includes:
the equipment code sending submodule is used for sending the equipment code to the database;
and the storage period receiving submodule is used for receiving the storage period of the equipment returned by the database based on the equipment code.
The invention also provides an electronic device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the device information management method according to an instruction in the program code.
The present invention also provides a computer-readable storage medium for storing a program code for executing the device information management method as described in any one of the above.
According to the technical scheme, the invention has the following advantages: the invention discloses a device information management method, which comprises the steps of receiving a report request of preset devices sent by a client; the reporting request carries equipment information; verifying the validity of the equipment information; when the verification is passed, acquiring a storage period of the equipment; acquiring weighted packet information corresponding to a storage period; calculating the survival validity period of the equipment information according to the weighted packet information; storing the equipment information to a database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
According to the invention, the expiration marking and data cleaning are carried out on the equipment information stored in the database by calculating the survival validity period of the equipment information so as to realize the timely cleaning of the equipment information, the timeliness is strong, and the occurrence of the data redundancy phenomenon in the database can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of a method for managing device information according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for managing device information according to another embodiment of the present invention;
fig. 3 is a flowchart of a device information management method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a Map field add operation;
FIG. 5 is a diagram illustrating a Map field removal operation;
FIG. 6 is a data model of Cassandra;
FIG. 7 is a flow chart of data expiration marking;
FIG. 8 is a schematic diagram of data compression cleaning;
fig. 9 is a block diagram of a device information management apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a device information management method and device, electronic equipment and a storage medium, and aims to solve the technical problems that data cannot be cleaned in time and data cleaning timeliness is poor in the prior art.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for managing device information according to an embodiment of the present invention.
The device information management method provided by the invention specifically comprises the following steps:
step 101, receiving a report request of preset equipment sent by a client; the reporting request carries equipment information;
in the embodiment of the invention, an interface Application Program (API) server is connected with a client and can receive an equipment information reporting request sent by a client APP, wherein the equipment information records the label information of equipment and the related information of an uploading user.
102, verifying the validity of the equipment information;
after the API server side obtains the equipment information, validity verification can be carried out on the basis of the equipment information, and whether the equipment information accords with an uploading rule or not is verified.
103, acquiring a storage period of the equipment after the verification is passed;
after the device information is verified, the API server may obtain the configuration information pre-configured in the database by the device, and obtain a storage period of the device from the configuration information, where the storage period may be used to define a storage duration of the device information in the database.
Step 104, acquiring weighted packet information corresponding to a storage period;
after the storage period is obtained, the API server can also request to inquire whether the configuration information carries the weighted packet information correspondingly in the configuration center; the weighted packet information is used to define a storage extension time of the device information.
Step 105, calculating the survival validity period of the equipment information according to the weighted packet information and the storage period;
in the embodiment of the present invention, the validity period of the device information can be calculated after the storage period of the device information and the weighted packet information are acquired.
Step 106, storing the equipment information into a database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
After determining the validity period for survival, the device information may be stored to a database based on the validity period for survival, and the database may manage the device information according to the validity period for survival, including expiration marking the device information to clean the device information when the device information is expired.
According to the invention, the expiration marking and data cleaning are carried out on the equipment information stored in the database by calculating the survival validity period of the equipment information so as to realize the timely cleaning of the equipment information, the timeliness is strong, and the occurrence of the data redundancy phenomenon in the database can be reduced.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for managing device information according to another embodiment of the present invention. The method specifically comprises the following steps:
step 201, receiving a report request of a preset device sent by a client; the reporting request carries equipment information;
in the embodiment of the invention, an interface Application Program (API) server is connected with a client and can receive an equipment information reporting request sent by a client APP, wherein the equipment information records the label information of equipment and the related information of an uploading user.
The device information may specifically include:
user login information, such as the actual mobile phone number of a login user;
equipment code: if the client side obtains the equipment SN code of the equipment;
operating system information: including operating system types, such as Android, IOS, etc.; but also operating system versions, such as the v6.0.0 version, etc.;
client application version information: such as V2.1.0;
the network mode is as follows: such as 4G, 5G, Wi-Fi and the like;
access application ID: an 8-bit length ID, etc.;
and (3) checking the token: such as a 32-bit length check field, etc.
Step 202, carrying out validity check on the equipment information;
in the embodiment of the invention, after the device information is acquired, the validity of the device information can be checked.
In one example, the validation rules may include one or more of the following rules:
1) whether the mobile phone number of the login user accords with a preset mobile phone number format or not is judged, and if the mobile phone number accords with the preset mobile phone number format, the mobile phone number is 11-bit long;
2) whether the device SN code information is null (");
3) whether the operating system is IOS or Android;
4) whether the version number of the application version conforms to the Vx.y.z rule (x, y, z are numbers);
5) whether the network mode is any one of 4G and 5G, Wi-Fi;
6) whether the access application ID exists and satisfies a length check rule (e.g., 8-bit length);
7) it is checked whether the token is present and the check rule is satisfied (e.g. 32 bit length and the token value taken by the cache from the access application ID matches this value).
In addition, a person skilled in the art may set other rules according to actual needs, and the embodiment of the present invention is not limited in this respect.
Step 203, acquiring the storage period of the equipment after the verification is passed;
in the embodiment of the present invention, after the verification is passed, the API server may obtain the storage period corresponding to the device.
In one example, step 203 may comprise: sending the device code to a database; and receiving the storage period of the equipment returned by the database based on the equipment code.
In practice, the device may subscribe for a storage period of device information, such as VIP-7 indicating a 7 day storage period.
Step 204, acquiring weighted packet information corresponding to a storage period;
in the embodiment of the invention, the API server side can send a query request to the configuration center; receiving the weighted packet information corresponding to the storage period returned by the configuration center based on the query request.
In one example, if the weighted packet information indicates VIP:1, this indicates that the memory cycle is automatically added to a 1 day validity period.
Step 205, calculating the survival validity period of the equipment information according to the weighted packet information and the storage period;
after the storage period and the weighting packet information are acquired, the survival validity period of the device information can be calculated according to the weighting packet information and the storage period.
In one example, the calculation rule of the validity-to-live period may be as follows:
TTL is (number of storage cycle days queried by the database + number of cycle days configured in the weighted packet information queried by the configuration center) × 24 × 3600, unit second.
Step 206, generating a report log of the device information;
step 207, sending the equipment information and the reported log to a database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
In the embodiment of the invention, the API server can insert the device information and the report log of the device information into the database respectively, and the inserted data are all provided with the survival validity period so as to facilitate the time limit management. After receiving the information, the database returns a corresponding information submission operation result to the API server, where if a return 1 indicates that the writing is successful, and a return 0 indicates that the writing is failed. The API server side can return an operation result to the client side according to the information submitting operation result so as to inform the user equipment whether the information is written successfully or not.
For ease of understanding, the following is illustrated by specific examples:
referring to fig. 3, fig. 3 is a flowchart of an apparatus information management method according to an embodiment of the present invention. The method specifically comprises the following steps:
1) requesting reporting equipment information to an API server through an APP on a client;
2) the API server side requests validity check;
3) the API server side inquires a storage period from a database;
4) the API server receives a storage period returned by the database;
5) the API server side pulls a data self-defined expiration policy (including weighted package information) to the configuration center;
6) the configuration center returns the custom expiration policy to the API server;
7) the API server calculates the validity period of the data survival;
8) the API server stores the equipment information in the database according to the data survival validity period;
9) the database returns an information submission operation result to the API server;
10) and the API server returns an operation result to the client APP according to the information submission operation result.
Further, the database can perform data marking and cleaning compression work according to the survival validity period of the data.
In an embodiment of the present invention, the selected database may be a Cassandra database, which may store data through a flexible Map data structure storage model.
The data Map type stores equipment information fields and specific Value information in a Key/Value form, does not contain repeated data, and can flexibly and conveniently add data, and quickly retrieve, update and delete data according to a Key.
The characteristics of Map storage are as follows:
1) the field increment operation may be implemented by adding a Key/Value Key Value pair Value, and overriding the update if the Key already exists. See in particular fig. 4;
2) the Key/Value Key-Value pair specifying the Key may be removed, with no operation if the Key does not exist. See in particular fig. 5.
Fig. 6 is a data model of Cassandra, and as shown in fig. 6, a key space (Keyspace) is an outermost container of data in Cassandra, and is a container of a list of one or more Column families (Column family).
The column family is a container for orderly collecting rows, each row is an ordered column set, and each row of data can set the survival period policy of the data. By setting the corresponding survival validity period in each row of data, the expiration marking of the data can be realized so as to clear the expired data in real time. Where the column is the basic data structure of Cassandra, containing three values: column Name (Name), value (value), and Timestamp (Timestamp).
As shown in fig. 7, the data expiration marking process specifically includes:
requesting to read database data;
inquiring whether the requested data has data with an expired Time To Live (TTL) or not;
if yes, marking the expired data as tombstone data and returning non-tombstone data;
if not, triggering the operation of inquiring whether the data with the expired validity period exists in the requested data again.
Further, as shown in fig. 8, after the marking of the expired data is completed, the data may be compressed and cleaned, and the specific process includes:
merging records with the same partition key;
keep Timestamp up-to-date record;
deleting the data marked with tombstone;
and (5) sorting and retaining the latest data.
According to the invention, the expiration marking and data cleaning are carried out on the equipment information stored in the database by calculating the survival validity period of the equipment information so as to realize the timely cleaning of the equipment information, the timeliness is strong, and the occurrence of the data redundancy phenomenon in the database can be reduced.
Referring to fig. 9, fig. 9 is a block diagram of an apparatus information management device according to an embodiment of the present invention.
The embodiment of the invention provides an equipment information management device, which is applied to an interface server, wherein the interface server is connected with a client and a database; the device comprises:
a report request receiving module 901, configured to receive a report request of a preset device sent by a client; the reporting request carries equipment information;
the validity checking module 902 is configured to perform validity checking on the device information;
a storage period obtaining module 903, configured to obtain a storage period of the device after the verification passes;
a weighted packet information obtaining module 904, configured to obtain weighted packet information corresponding to a storage period;
a validity-for-survival obtaining module 905 configured to calculate a validity-for-survival period of the device information according to the weighted packet information and the storage period;
a storage module 906, configured to store the device information into a database according to the validity period of life; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
In the embodiment of the invention, the equipment information comprises user login information, equipment codes, operating system information, client application version information, a network mode, an access application ID and a check token.
In this embodiment of the present invention, the storage period obtaining module 903 includes:
the device code sending submodule is used for sending the device code to the database;
and the storage period receiving submodule is used for receiving the storage period of the equipment returned by the database based on the equipment code.
In the embodiment of the invention, the interface server is also connected with a preset configuration center; the weighted packet information obtaining module 904 includes:
sending a query request to a configuration center;
and receiving the weighted packet information corresponding to the storage period returned by the configuration center based on the query request.
In an embodiment of the present invention, the storage module 906 includes:
generating a reporting log of the equipment information;
and sending the equipment information and the reported log to a database according to the survival validity period.
An embodiment of the present invention further provides an electronic device, where the device includes a processor and a memory:
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is used for executing the equipment information management method of any embodiment of the invention according to instructions in the program codes.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a program code, and the program code is used to execute the device information management method according to any embodiment of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. The equipment information management method is characterized by being applied to an interface server, wherein the interface server is connected with a client and a database; the method comprises the following steps:
receiving a report request of preset equipment sent by the client; the reporting request carries equipment information;
carrying out validity check on the equipment information;
when the verification is passed, acquiring a storage period of the equipment;
acquiring weighted packet information corresponding to the storage period;
calculating the survival validity period of the equipment information according to the weighted packet information and the storage period;
storing the equipment information to the database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
2. The method of claim 1, wherein the device information comprises user login information, device code, operating system information, client application version information, network mode, access application ID, and a check token.
3. The method of claim 2, wherein the step of obtaining the memory period of the device comprises:
sending the device code to the database;
and receiving the storage period of the equipment returned by the database based on the equipment code.
4. The method according to claim 3, wherein the interface server is further connected to a preset configuration center; the step of obtaining the weighted packet information corresponding to the storage period includes:
sending a query request to the configuration center;
and receiving the weighted packet information corresponding to the storage period returned by the configuration center based on the query request.
5. The method of claim 4, wherein the step of storing the device information to the database according to the expiration date comprises:
generating a reporting log of the equipment information;
and sending the equipment information and the report log to the database according to the survival validity period.
6. The equipment information management device is characterized by being applied to an interface server, wherein the interface server is connected with a client and a database; the device comprises:
a report request receiving module, configured to receive a report request of a preset device sent by the client; the reporting request carries equipment information;
the validity checking module is used for checking the validity of the equipment information;
the storage period acquisition module is used for acquiring the storage period of the equipment after the verification is passed;
the weighted packet information acquisition module is used for acquiring weighted packet information corresponding to the storage period;
a validity-to-live acquiring module, configured to calculate a validity-to-live of the device information according to the weighted packet information and the storage period;
the storage module is used for storing the equipment information to the database according to the survival validity period; and the database is used for carrying out expiration marking and data cleaning on the equipment information according to the survival validity period.
7. The apparatus of claim 6, wherein the device information comprises user login information, a device code, operating system information, client application version information, a network mode, an access application ID, and a check token.
8. The apparatus of claim 7, wherein the storage period obtaining module comprises:
the equipment code sending submodule is used for sending the equipment code to the database;
and the storage period receiving submodule is used for receiving the storage period of the equipment returned by the database based on the equipment code.
9. An electronic device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the device information management method according to any one of claims 1 to 5 according to an instruction in the program code.
10. A computer-readable storage medium characterized in that the computer-readable storage medium stores a program code for executing the device information management method of any one of claims 1 to 5.
CN202110279697.0A 2021-03-16 2021-03-16 Equipment information management method and device, electronic equipment and storage medium Pending CN112860679A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110279697.0A CN112860679A (en) 2021-03-16 2021-03-16 Equipment information management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110279697.0A CN112860679A (en) 2021-03-16 2021-03-16 Equipment information management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112860679A true CN112860679A (en) 2021-05-28

Family

ID=75994716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110279697.0A Pending CN112860679A (en) 2021-03-16 2021-03-16 Equipment information management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112860679A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113255012A (en) * 2021-07-01 2021-08-13 深圳市深圳通有限公司 Method, device and equipment for managing riding codes and storage medium
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10187701A (en) * 1996-12-26 1998-07-21 Canon Inc Data processor, data processing method, and recording medium storing readable program
CN102279881A (en) * 2011-07-28 2011-12-14 南京中兴新软件有限责任公司 Junk data clearing method and file access server
CN107193988A (en) * 2017-05-30 2017-09-22 梅婕 The quick method for cleaning of data
CN110765081A (en) * 2018-07-26 2020-02-07 杭州海康威视数字技术股份有限公司 Data deleting method and device
US10657064B1 (en) * 2019-01-31 2020-05-19 Salesforce.com. inc. Extending usages of cached data objects beyond cache expiration periods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10187701A (en) * 1996-12-26 1998-07-21 Canon Inc Data processor, data processing method, and recording medium storing readable program
CN102279881A (en) * 2011-07-28 2011-12-14 南京中兴新软件有限责任公司 Junk data clearing method and file access server
CN107193988A (en) * 2017-05-30 2017-09-22 梅婕 The quick method for cleaning of data
CN110765081A (en) * 2018-07-26 2020-02-07 杭州海康威视数字技术股份有限公司 Data deleting method and device
US10657064B1 (en) * 2019-01-31 2020-05-19 Salesforce.com. inc. Extending usages of cached data objects beyond cache expiration periods

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407415A (en) * 2021-06-28 2021-09-17 四川虹美智能科技有限公司 Log management method and device of intelligent terminal
CN113255012A (en) * 2021-07-01 2021-08-13 深圳市深圳通有限公司 Method, device and equipment for managing riding codes and storage medium
CN113255012B (en) * 2021-07-01 2021-10-19 深圳市深圳通有限公司 Method, device and equipment for managing riding codes and storage medium

Similar Documents

Publication Publication Date Title
CN109117275B (en) Account checking method and device based on data slicing, computer equipment and storage medium
CN111447248A (en) File transmission method and device
CN112860679A (en) Equipment information management method and device, electronic equipment and storage medium
CN102546668B (en) Method, device and system for counting unique visitors
CN111030888B (en) Domain name system DNS capacity measuring method, device, equipment and medium
CN104239353B (en) WEB classification control and log audit method
CN112711612B (en) Data processing method, device, storage medium and electronic device
CN104750738B (en) A kind of method for updating the data information, back end, management node and system
CN114979158B (en) Resource monitoring method, system, equipment and computer readable storage medium
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN106326280B (en) Data processing method, device and system
CN112579695A (en) Data synchronization method and device
WO2006052938A2 (en) Implementing application specific management policies on a content addressed storage device
CN114328566A (en) Relationship graph updating method, device, medium, equipment and generating method
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
CN114579408A (en) System and method for analyzing real-time equation of real-time database
CN111241088A (en) Data writing method, data query method, device and equipment
CN107094085B (en) Signaling transmission method and device
CN113377812B (en) Order duplicate removal method and device for big data
CN117420951A (en) Data modification writing method, data modification writing device, and computer storage medium
CN107948234A (en) The processing method and processing device of data
CN110727895A (en) Sensitive word sending method and device, electronic equipment and storage medium
CN111309693A (en) Data synchronization method, device and system, electronic equipment and storage medium
CN105610921A (en) Erasure code filing method based on data cache in cluster
CN113794622B (en) Message processing method and device, electronic equipment and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20211208

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Applicant after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 1 / F and 2 / F, East Garden, Huatian International Plaza, 211 Longkou Middle Road, Tianhe District, Guangzhou, Guangdong 510000

Applicant before: Century Dragon Information Network Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240313

Address after: Unit 1, Building 1, China Telecom Zhejiang Innovation Park, No. 8 Xiqin Street, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province, 311100

Applicant after: Tianyi Shilian Technology Co.,Ltd.

Country or region after: China

Address before: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Applicant before: Tianyi Digital Life Technology Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right