CN110162412B - Method and device for performing data operation on client - Google Patents

Method and device for performing data operation on client Download PDF

Info

Publication number
CN110162412B
CN110162412B CN201810151840.6A CN201810151840A CN110162412B CN 110162412 B CN110162412 B CN 110162412B CN 201810151840 A CN201810151840 A CN 201810151840A CN 110162412 B CN110162412 B CN 110162412B
Authority
CN
China
Prior art keywords
data
mapping
operated
key value
key
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.)
Active
Application number
CN201810151840.6A
Other languages
Chinese (zh)
Other versions
CN110162412A (en
Inventor
何武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810151840.6A priority Critical patent/CN110162412B/en
Publication of CN110162412A publication Critical patent/CN110162412A/en
Application granted granted Critical
Publication of CN110162412B publication Critical patent/CN110162412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

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

Abstract

The invention discloses a method and a device for performing data operation on a client, and relates to the technical field of computers. One embodiment of the method comprises the following steps: a data operation layer is arranged between the terminal application and the local storage space, the method comprises the steps of obtaining data information to be operated from a data operation request of the terminal application, wherein the data information to be operated comprises key names of data to be operated; packaging key names of data to be operated into mapping main keys; and executing data operation according to the mapping main key. The implementation mode can flexibly and conveniently store data, and solves the problems that different service data cannot be isolated, the expiration time of the data cannot be set and the like.

Description

Method and device for performing data operation on client
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for performing data operations on a client.
Background
With the development of website service, more and more data are stored in a client for persistence, so that the pressure of a server is relieved, and the network traffic is reduced. How to store data conveniently and efficiently at the client becomes a key issue.
At present, two main types of local data storage schemes exist in the browser:
Firstly, using a data cookie stored on a local terminal of a user, storing the cookie in a local hard disk, reading a cookie value of a corresponding domain name from the hard disk when a browser accesses the domain name, and associating the cookie value with a document object of a current page;
Secondly, the local storage localStorage in the html5 specification of the 5 th edition of hypertext markup language is utilized, the local storage localStorage also stores data in a local hard disk, and when a browser accesses a certain domain name, the browser reads the data of the corresponding domain name and then associates the data with a window object of a current page.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
1. cookie technology has three drawbacks: firstly, the capacity is too small and is generally not more than 2KB; secondly, cookies are attached to each network request of the browser, so that the cost of network traffic is increased; thirdly, the writing of codes is troublesome, the cookie stores a whole character string, and the data is manually formatted when the cookie is operated each time;
2. The local storage technique improves the disadvantages of cookies, but it also has its own disadvantages: the expiration time of the data cannot be customized, the data of different services cannot be isolated, and the like.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a method and an apparatus for performing data operation on a client, which can flexibly and conveniently store data, and solve the problems that different service data cannot be isolated, and data expiration time cannot be set.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for performing data operations at a client.
A method of performing data operations at a client, having a data operation layer between a terminal application and a local storage space, the method comprising: acquiring data information to be operated from a data operation request of a terminal application, wherein the data information to be operated comprises key names of data to be operated; packaging the key name of the data to be operated into a mapping main key; and executing data operation according to the mapping main key.
Optionally, if the data information to be operated further includes a key value of the data to be operated, the step of executing the data operation according to the mapping primary key includes: searching whether a local storage space stores a mapping key value according to the mapping main key; if not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, the step of generating a new mapped key value from the key value and the mapped key value comprises: judging whether the mapping key value contains an expiration time or not; if so, judging whether the data to be operated is expired according to the expiration time, deleting the data to be operated when the data to be operated is expired, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time; otherwise, the key value is used as a new mapping key value.
Optionally, if the data information to be operated further includes a key value and an expiration time of the data to be operated, the step of executing the data operation according to the mapping primary key includes: generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, if the data information to be operated further includes an expiration time of the data to be operated, the step of executing the data operation according to the mapping primary key includes: obtaining a mapping key value stored in a local storage space according to the mapping main key; generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, the step of generating a new mapping key value based on the expiration time and the mapping key value comprises: judging whether the mapping key value contains the original expiration time or not; if so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time; otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
Optionally, before the step of saving the encapsulated data to be operated in the local storage space, the method further includes: and determining that the data corresponding to the mapping main key does not exist in the local storage space.
Optionally, if the data information to be operated includes only a key name of the data to be operated, the step of executing the data operation according to the mapping primary key includes: and searching data corresponding to the mapping main key from a local storage space according to the mapping main key.
Optionally, after the step of searching the data corresponding to the mapping primary key from the local storage space, the method further includes: judging whether the data is out of date; if the data is not expired or the expiration time is not set, returning the data; otherwise, deleting the data and returning a null value.
Optionally, the mapping primary key is generated from the key name and a data classification identifier.
According to another aspect of the embodiment of the invention, an apparatus for performing data operations at a client is provided.
An apparatus for performing data operations at a client, the apparatus being located at a data operation layer between a terminal application and a local storage space, the apparatus comprising: the information acquisition module is used for acquiring data information to be operated from a data operation request of the terminal application, wherein the data information to be operated comprises key names of data to be operated; the key name packaging module is used for packaging the key name of the data to be operated into a mapping main key; and the data operation module is used for executing data operation according to the mapping main key.
Optionally, if the data information to be operated further includes a key value of the data to be operated, the data operation module is further configured to: searching whether a local storage space stores a mapping key value according to the mapping main key; if not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, the data operation module is further configured to: judging whether the mapping key value contains an expiration time or not; if so, judging whether the data to be operated is expired according to the expiration time, deleting the data to be operated when the data to be operated is expired, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time; otherwise, the key value is used as a new mapping key value.
Optionally, if the data information to be operated further includes a key value and an expiration time of the data to be operated, the data operation module is further configured to: generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, if the data to be operated information further includes an expiration time of the data to be operated, the data operation module is further configured to: obtaining a mapping key value stored in a local storage space according to the mapping main key; generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
Optionally, the data operation module is further configured to: judging whether the mapping key value contains the original expiration time or not; if so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time; otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
Optionally, the method further comprises a data determining module for: and before the encapsulated data to be operated is stored in the local storage space, determining that the data corresponding to the mapping main key does not exist in the local storage space.
Optionally, if the data information to be operated includes only a key name of the data to be operated, the data operation module is further configured to: and searching data corresponding to the mapping main key from a local storage space according to the mapping main key.
Optionally, the system further comprises a data verification module for: after searching the data corresponding to the mapping primary key from the local storage space, judging whether the data is out of date; if the data is not expired or the expiration time is not set, returning the data; otherwise, deleting the data and returning a null value.
Optionally, the mapping primary key is generated from the key name and a data classification identifier.
Optionally, the apparatus is implemented based on a mapping object.
According to yet another aspect of an embodiment of the present invention, there is provided an electronic device that performs data operations at a client.
An electronic device for data manipulation at a client, comprising: one or more processors; and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method for performing data operation on the client provided by the embodiment of the invention.
According to yet another aspect of an embodiment of the present invention, a computer-readable medium is provided.
A computer readable medium having stored thereon a computer program which when executed by a processor implements a method for data manipulation at a client provided by an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: the data operation layer is added between the terminal application of the client and the local storage space, the key name of the data to be operated, which is obtained from the data operation request of the terminal application, is encapsulated by the data operation layer to obtain the mapping main key, and then the data operation is carried out according to the mapping main key, so that the operation on the local data of the client is realized, the user does not need to pay attention to the actual storage mode (cookie, sessionStorage, localStorage and the like) of the data, and the data can be flexibly and conveniently stored, thereby solving the problems that different service data cannot be isolated, the expiration time of the data cannot be set and the like, and simultaneously, when the storage mode such as sessionStorage, localStorage and the like is used, the method also has the advantages of high-capacity local storage, no increase of network load, long-term data storage, convenience in code writing and the like.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main flow of a method of data manipulation at a client according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an operation flow for setting expiration time according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data operation according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the main modules of an apparatus for data manipulation at a client according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The core of the technical scheme of the invention is as follows: the user is provided with a data operation layer realized based on the mapping object, the mapping object exposes the data 'adding, deleting and checking' operation interface, and the user does not directly access the data in the local storage, but indirectly accesses the data in the local storage through the operation interfaces. Thus, this "data manipulation layer" masks the underlying actual data manipulation. Based on the data operation layer, the invention can realize the functions of the isolation of different service data, the verification of the expiration time of the data and the like. Based on the object mapping mechanism, objects can be automatically persisted to the local data storage space by using metadata describing the mapping between the objects and the data store. In the following, two key points of the technical solution of the present invention are described respectively.
One is "data manipulation layer", and at present, the data manipulation of the client has only two stages: the user triggers data operation through the terminal application, receives the message and carries out corresponding operation on the data. The invention adds a data operation layer between the two stages: firstly, a user triggers the data operation of 'adding, deleting and modifying check' through various events and transmits the data of actual operation to a 'data operation layer'; then, the data operation layer receives the data operation information of the user, encapsulates the data operation information of the user by using different data encapsulation methods according to the client environment, and transmits the encapsulated information to a localStorage at the bottom layer; finally, carrying out actual data storage or data return on the localStorage; the returned data also needs to pass through a data operation layer, and after the availability of the data is checked by the data operation layer, the data is returned to the user.
Secondly, a mapping object is a common Javascript object in nature. The present invention redefines the object properties using the object. Define property method-setter method (for setting or storing data) and getter method (for retrieving or looking up data), adds code to the setter method that sends data manipulation information to localStorage, and returns the values in localStorage instead of the object's own properties values in the getter method. Thus, when the user is operating the mapping object, the mapping object will correspondingly operate the localStorage. The mapping object isolates the user from the actual storage container (local storage space), and the user does not care how the actual data is stored, only by code: var jshop =storage ('jshop'), i.e. the operation of "adding, deleting and modifying" can be performed on the data in the local data Storage space jshop. Meanwhile, the functions of the namespaces and the expiration time can be expanded on the mapping object, so that the problems that the localStorage cannot isolate data of different services and the expiration time cannot be customized are solved.
There are typically multiple services on the same page, such as: different businesses such as focusing on a commodity, collecting a store, acquiring a store gift box and the like can be located on the same page. To prevent confusion or renaming of variables between services, it is preferable that different service data have separate "memory spaces". For the isolation of data variables of different services, no browser support exists at present. In order to solve the problem, the invention adopts a naming space mode, and simulates the independent storage space by adding different naming prefixes or naming suffixes and other data classification identifiers for the data of different services, so as to achieve the following realization effect (taking adding the naming prefix as an example in the embodiment of the invention): when a user operates data, the data key name key is input into a mapping object (a data operation layer), but the data operation layer automatically converts the key into a 'prefix+key' and transmits the 'prefix+key' as a mapping main key to a localStorage for storage. Thus, the user does not know that the data is actually stored separately in the localStorage according to the namespaces, and the user can operate different data spaces by generating different mapping objects, without concern about whether the data in one data space will be duplicated with the key in another data space.
In a specific implementation of the present invention, first, a mapping object having a unique namespace is generated by a factory method (new Storage ("prefix"), and the namespace may be preceded by a naming prefix for data. The factory method mode (FACTORY METHOD) is a common object creation type design mode, the core spirit of the mode is a constant part in the packaging class, the personalized and well-changed part is extracted to be an independent class, and the purposes of decoupling, multiplexing and convenient later maintenance and expansion are achieved through dependent injection.
After setting a naming prefix, the generated mapping object (the data operation layer) adds a corresponding naming prefix to the received data key name key when performing data access operation on the mapping object. The user can use different naming prefixes (such as mem for member data, gift for gift data, etc., which are defined by the user independently) for different service ranges, and the invention can achieve the purpose of isolating different service data by keeping the naming prefixes unique. When the user sets data, { key: the value key pair is mapped into the mapping object, and the mapping object generates a { prefix+key: value) so that data of different services can be distinguished.
In addition, there are many times when timeliness is required for data stored by clients. The data can be normally accessed when not expired, and should be removed once expired. The present invention uses a "lazy clear" mode: and when accessing the data, checking the expiration of the data, if the data is not expired, returning normally, otherwise, clearing the data and returning a null value. For the problem that the expiration time cannot be customized, the method is solved by a method of encapsulating the expiration time set by a user into a mapping key value object according to the key value of the data. For example: when the user needs to set the expiration time of the data with key name, this can be achieved by calling setExpires (key, time) method of the mapping object ("data operation layer"), and the generated mapping key value is, for example: { val: value, expires: time }, and then saving the key name key of the data and the generated mapping key value in the form of key value pairs.
Setting the expiration time of data by setExpires method can be divided into two steps: firstly, acquiring data corresponding to a key; then generating a mapping key value for the data corresponding to the key, and storing the key and the mapping key value as a data object into a localStorage. Thus, when a value corresponding to a key needs to be acquired, if the key is not set with an expiration time, the stored data value corresponding to the key is directly returned. If the key has an expiration time set, a mapping key is actually returned, and then the expiration time corresponding to the "expires" parameter included in the mapping key is compared with the local time to determine whether the data has expired. And returning a null value if the data is out of date, deleting the value corresponding to the key in the localStorage, and prompting the user that the data is out of date. And returning a value corresponding to the 'val' parameter included in the mapping key value (i.e. a value corresponding to the key) if the value is not expired.
The implementation process of the technical scheme of the invention is specifically described below by combining with an embodiment.
Fig. 1 is a schematic diagram of a main flow of a method for performing data operations at a client according to an embodiment of the present invention. The method for performing data operation on the client according to the embodiment of the invention is executed by a data operation layer arranged between the terminal application and the local storage space. The terminal application is, for example, various application programs deployed at the terminal, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, etc. (only examples); the local storage space is, for example, a local magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like located in the client device, or a USB (Universal Serial Bus ) flash disk, a removable hard disk, or the like connected to the client device. As shown in fig. 1, the method for performing data operations at a client according to the embodiment of the present invention mainly includes the following steps S101 to S103.
Step S101: acquiring data information to be operated from a data operation request of a terminal application, wherein the data information to be operated comprises key names of data to be operated;
Step S102: packaging key names of data to be operated into mapping main keys;
step S103: and executing data operation according to the mapping main key.
In the present invention, data operations can be categorized into two types: data preservation and data lookup correspond to two methods setter and getter, respectively, in the mapped object. According to the specific implementation process of the data operation, the data saving operation can comprise data addition and data modification; the data lookup operations may include data querying, data deleting. The specific execution process of the data operation will be described below according to the difference of the data information to be operated included in the data operation request.
Embodiment one: if the data information to be operated also includes a key value of the data to be operated, namely: the data to be operated information is the key name and the key value of the data to be operated, and the process of executing the data operation according to the mapping main key in step S103 is specifically as follows:
searching whether the local storage space stores the mapping key value according to the mapping main key;
If not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
Specifically, the step of generating a new mapped key value from the key value and the mapped key value may include:
Judging whether the mapping key value contains the expiration time or not;
If yes, judging whether the data to be operated is outdated according to the expiration time, deleting the data to be operated when the data to be operated is outdated, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time;
Otherwise, the key value is used as a new mapping key value.
If the information of the data to be operated is the key name and the key value of the data to be operated, the data to be operated may be newly added data or the data stored in the local storage space may be modified. When executing data operation, it is necessary to find out from the local storage space whether there is data corresponding to the mapped primary key according to the mapped primary key generated by the key name. If not, the data is newly added, and if so, the data is modified. Wherein the mapping primary key may be generated from a key name and a data classification identifier. Therefore, the data of different services can be classified and isolated.
For the new addition of data, the key value of the data to be operated can be directly used as a mapping key value, and then the mapping main key and the mapping key value are stored in a local storage space in the form of key value pairs.
For data modification, firstly, a mapping key value corresponding to a mapping main key is obtained, and whether the mapping key value contains an expiration time is judged. If so, judging whether the data to be operated is expired according to the expiration time, deleting the data to be operated when the data to be operated is expired, and executing a new data adding flow at the moment: and taking the key value as a new mapping key value, and taking the mapping main key and the new mapping key value as encapsulated data to be operated. When the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, generating a new mapping key value according to the key value and the expiration time, and taking the mapping main key and the new mapping key value as the packaged data to be operated; otherwise, when the mapping key value does not contain the expiration time, the key value is used as a new mapping key value, and then the mapping main key and the new mapping key value are used as encapsulated data to be operated. And finally, storing the mapping main key and the mapping key value in the packaged data to be operated into a local storage space in the form of key value pairs. Before storing the encapsulated data, the data stored in the local storage space is required to be deleted according to the mapping primary key, that is: and determining that the data corresponding to the mapping main key does not exist in the local storage space.
Embodiment two: if the data information to be operated also includes the key value and expiration time of the data to be operated, namely: the data to be operated information is the key name, key value and expiration time of the data to be operated, and the process of executing the data operation according to the mapping primary key in step S103 is specifically as follows:
Generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
If the information of the data to be operated is the key name, the key value and the expiration time of the data to be operated, the data may be newly added and the expiration time may be set, or the key value and the expiration time of the data stored in the local storage space may be all modified. At this time, no matter the data is newly added or modified, the corresponding data does not need to be searched from the local storage space, the mapping main key can be directly generated according to the key name, the mapping key value is generated according to the key value and the expiration time, and then the mapping main key and the mapping key value are used as the key value to store the data into the local storage space. Before storing the key value data, it needs to be determined that the local storage space does not have the data corresponding to the mapped primary key, that is: if the data is modified, the data stored in the local storage space before needs to be deleted according to the mapping main key.
Embodiment III: if the data information to be operated further includes an expiration time of the data to be operated, namely: the data to be operated information is the key name and expiration time of the data to be operated, and the process of executing the data operation according to the mapping primary key in step S103 is specifically as follows:
obtaining a mapping key value stored in a local storage space according to the mapping main key;
Generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
Specifically, the step of generating a new mapped key value based on the expiration time and the mapped key value may comprise:
Judging whether the mapping key value contains the original expiration time or not;
If so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time;
otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
If the information of the data to be operated is the key name and the expiration time of the data to be operated, the expiration time may be set for the new data increment, or the expiration time of the data stored in the local storage space may be modified. At this time, the corresponding data can be searched in the local storage space according to the mapping primary key, the mapping key value is obtained, and then whether the expiration time is newly added or modified is determined according to whether the expiration time exists in the mapping key value. For the sake of distinction herein, the expiration time already contained in the mapped key value is referred to as the "original expiration time".
FIG. 2 is a flow chart illustrating the operation of setting an expiration time according to an embodiment of the present invention. When the mapping key value does not contain the original expiration time, the new expiration time is added. At this time, a key value is obtained from the mapped key value, a new mapped key value { val: value, expires: time } is generated according to the key value and the expiration time, and then the mapped primary key and the new mapped key value of the data are stored as a package object in a local storage space (for example, localStorage) in the form of a key value pair.
When the mapping key value contains the original expiration time, the expiration time is modified. At this time, firstly judging whether the data to be operated is expired according to the original expiration time, and deleting the data to be operated when the data to be operated is expired; when the data to be operated is not expired, obtaining a key value of the data to be operated from the mapping key value, generating a new mapping key value { val: value, expires: time } according to the key value and the expiration time, and then storing the mapping main key and the new mapping key value as encapsulated data to be operated in a key value pair mode.
Before storing the key value data, it needs to be determined that the local storage space does not have the data corresponding to the mapped primary key, that is: if the data is modified, the data stored in the local storage space before needs to be deleted according to the mapping main key.
Embodiment four: if the data information to be operated includes only the key name of the data to be operated, the process of executing the data operation according to the mapping main key in step S103 is specifically as follows:
and searching the data corresponding to the mapping main key from the local storage space according to the packaged data to be operated.
If the information of the data to be operated is the key name of the data to be operated, the data operation at the moment is data inquiry or data acquisition. According to the data operation method, after receiving an operation request, the data operation layer generates a mapping main key according to the key name to realize data encapsulation, and then searches corresponding data content from the local storage space according to the mapping main key. And after searching the data corresponding to the mapping primary key from the local storage space, the method may further include:
judging whether the data is out of date;
if the data is not expired or the expiration time is not set, returning the data;
Otherwise, the data is deleted and a null value is returned.
And if the corresponding data is not found according to the mapping main key, returning a null value and prompting the user.
In addition, when the user needs to delete the data, the deletion operation can be continued after the data is found.
According to the technical scheme of the invention, if only the problem that the expiration time cannot be set is required to be solved, the mapping main key at the moment can be the key name key of the data to be operated, and the generation is not required according to the key name key and the data classification identifier. If the problem that the service data cannot be isolated is also required to be solved, the mapping primary key is generated by the key name key and the data classification identifier.
FIG. 3 is a flow chart of the data operation according to an embodiment of the present invention. Fig. 3, which illustrates the data operation principle of the present invention. When the user newly adds the stored data { key: value), transfer { key: value key value pair into a mapped object ("data manipulation layer"), the mapped object generates { prefix+key: value key value pair, then find out whether the data has expiration time setting from the local storage localStorage according to the mapping primary key prefix+key. If not, directly save { prefix+key: value } key value pairs into localStorage; if so, and not expired, { prefix+key: { val: value, expires: time } } } object (time is the expiration time of a key, such as "1515943718780", indicating the chinese standard time Sun Jan 14 2018 23:28:38GMT+0800, if the current client time exceeds this time, indicating that the data corresponding to the key has expired) is stored in the local storage localStorage. If the data has expired, deleting the original data in the local storage localStorage, and generating { prefix+key "by the mapping object: the value key value pair is saved in the local storage localStorage.
When a user acquires data, a data key name key value is transferred to a mapping object, and the mapping object generates a mapping main key: pre+key, and inquiring and obtaining corresponding data in a local storage space localStorage as an index, if the data is empty or the data has expired, the data is not available, returning an empty value and prompting a user; and if the data is not expired or the expiration time is not set, returning the data.
Fig. 4 is a schematic diagram of main modules of an apparatus for performing data operations at a client according to an embodiment of the present invention. As shown in fig. 4, an apparatus 400 for performing data operations at a client according to an embodiment of the present invention is located at a data operation layer between a terminal application and a local storage space, and mainly includes an information acquisition module 401, a key name encapsulation module 402, and a data operation module 403.
The information obtaining module 401 is configured to obtain data information to be operated from a data operation request of a terminal application, where the data information to be operated includes a key name of data to be operated;
The key name packaging module 402 is configured to package a key name of data to be operated into a mapping primary key;
the data operation module 403 is configured to perform a data operation according to the mapped primary key.
If the data to be operated information further includes a key value of the data to be operated, the data operation module 403 may be further configured to:
searching whether the local storage space stores the mapping key value according to the mapping main key;
If not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
In particular, the data manipulation module 403 may also be configured to:
Judging whether the mapping key value contains the expiration time or not;
If yes, judging whether the data to be operated is outdated according to the expiration time, deleting the data to be operated when the data to be operated is outdated, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time;
Otherwise, the key value is used as a new mapping key value.
If the data to be operated information further includes a key value and an expiration time of the data to be operated, the data operation module 403 may be further configured to:
Generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
If the data to be operated information further includes an expiration time of the data to be operated, the data operation module 403 may be further configured to:
obtaining a mapping key value stored in a local storage space according to the mapping main key;
Generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
And storing the packaged data to be operated into a local storage space.
In particular, the data manipulation module 403 may also be configured to:
Judging whether the mapping key value contains the original expiration time or not;
If so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time;
otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
The apparatus 400 for performing data operations on a client according to an embodiment of the present invention may further include a data determining module (not shown in the figure) configured to: before the packaged data to be operated is stored in the local storage space, it is determined that the data corresponding to the mapping main key does not exist in the local storage space.
If the data to be operated information is a key name of the data to be operated, the data operation module 403 may be further configured to:
and searching the data corresponding to the mapping main key from the local storage space according to the packaged data to be operated.
The apparatus 400 for performing data operations on a client according to an embodiment of the present invention may further include a data verification module (not shown in the figure) configured to: after searching data corresponding to the mapping primary key from the local storage space, judging whether the data is out of date;
if the data is not expired or the expiration time is not set, returning the data;
otherwise, the data is deleted and a null value is returned.
According to the technical scheme of the embodiment of the invention, the mapping main key is generated by key names and data classification identifiers.
The apparatus 400 for performing data operations at a client according to the embodiment of the present invention is implemented based on a mapping object.
According to the technical scheme of the embodiment of the invention, the data operation layer is added between the terminal application and the local storage space of the client, the key name of the data to be operated, which is acquired from the data operation request of the terminal application, is encapsulated by the data operation layer to obtain the mapping main key, and then the data operation is carried out according to the mapping main key, so that the local data of the client is operated, the user does not need to pay attention to the actual storage mode (cookie, sessionStorage, localStorage and the like) of the data, the data can be flexibly and conveniently stored, the problems that different service data cannot be isolated, the expiration time of the data cannot be set and the like are solved, and meanwhile, when the storage mode such as sessionStorage, localStorage is used, the method also has the advantages of high-capacity local storage, no increase of network load, long-term storage of the data, convenience in code writing and the like.
The key point of the invention is the encapsulation of the data operation layer, and because the invention realizes the encapsulation of the data operation layer through the mapping object, various data operation functions (such as data log record, data operation rollback and the like) can be continuously expanded in the data operation layer in theory, and different client storage can be compatible, and the invention is not limited to local storage of localStorage.
Fig. 5 illustrates an exemplary system architecture 500 of a method of performing data operations at a client or an apparatus of performing data operations at a client to which embodiments of the invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for performing data operations on the client provided by the embodiment of the present invention is generally performed by the server 505, and accordingly, the device for performing data operations on the client is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing a terminal device or server in accordance with an embodiment of the present invention. The terminal device or server shown in fig. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described units or modules may also be provided in a processor, for example, as: a processor includes an information acquisition module, a key name encapsulation module, and a data manipulation module. The names of these units or modules do not constitute limitations on the unit or module itself in some cases, and for example, the information acquisition module may also be described as "a module for acquiring data information to be operated from a data operation request of a terminal application".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: a data operation layer is arranged between the terminal application and the local storage space, comprising: acquiring data information to be operated from a data operation request of a terminal application, wherein the data information to be operated comprises key names of data to be operated; packaging the key name of the data to be operated into a mapping main key; and executing data operation according to the mapping main key.
According to the technical scheme of the embodiment of the invention, the data operation layer is added between the terminal application of the client and the local storage space, the key name of the data to be operated, which is acquired from the data operation request of the terminal application, is encapsulated by the data operation layer to obtain the mapping main key, and then the data operation is carried out according to the mapping main key, so that the local data of the client is operated, the user does not need to pay attention to the actual storage mode (cookie, sessionStorage, localStorage and the like) of the data, the data can be flexibly and conveniently stored, the problems that different service data cannot be isolated, the expiration time of the data cannot be set and the like are solved, and meanwhile, when the storage mode such as sessionStorage, localStorage is used, the method also has the advantages of high-capacity local storage, no increase of network load, long-term storage data, convenience in code writing and the like.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (19)

1. A method of performing data operations at a client, wherein there is a data operation layer between a terminal application and a local storage space, the method comprising:
Acquiring data information to be operated from a data operation request of a terminal application, wherein the data information to be operated comprises key names of data to be operated;
Packaging the key name of the data to be operated into a mapping main key, wherein the mapping main key is generated by the key name and the data classification identifier;
Executing data operation according to the mapping main key;
If the data information to be operated further includes the expiration time of the data to be operated, the step of executing the data operation according to the mapping primary key includes: obtaining a mapping key value stored in a local storage space according to the mapping main key; generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
2. The method of claim 1, wherein if the data to be operated information further includes a key value of the data to be operated, the step of performing the data operation according to the mapped primary key includes:
searching whether a local storage space stores a mapping key value according to the mapping main key;
If not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
and storing the encapsulated data to be operated into a local storage space.
3. The method of claim 2, wherein generating a new mapped key value from the key value and the mapped key value comprises:
judging whether the mapping key value contains an expiration time or not;
If so, judging whether the data to be operated is expired according to the expiration time, deleting the data to be operated when the data to be operated is expired, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time;
otherwise, the key value is used as a new mapping key value.
4. The method of claim 1, wherein if the data to be operated information further includes a key value and an expiration time of the data to be operated, the step of performing the data operation according to the mapped primary key comprises:
Generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated;
and storing the encapsulated data to be operated into a local storage space.
5. The method of claim 1, wherein generating a new map key value based on the expiration time and the map key value comprises:
Judging whether the mapping key value contains the original expiration time or not;
If so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time;
Otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
6. The method according to any one of claims 2-5, further comprising, prior to the step of saving the encapsulated data to be operated on to a local storage space:
and determining that the data corresponding to the mapping main key does not exist in the local storage space.
7. The method of claim 1, wherein if the data information to be operated includes only a key name of the data to be operated, the step of performing the data operation according to the mapped primary key includes:
And searching data corresponding to the mapping main key from a local storage space according to the mapping main key.
8. The method of claim 7, further comprising, after the step of searching the local storage space for data corresponding to the mapped primary key:
judging whether the data is out of date;
if the data is not expired or the expiration time is not set, returning the data;
Otherwise, deleting the data and returning a null value.
9. An apparatus for performing data operations at a client, the apparatus being located at a data operation layer between a terminal application and a local storage space, the apparatus comprising:
The information acquisition module is used for acquiring data information to be operated from a data operation request of the terminal application, wherein the data information to be operated comprises key names of data to be operated;
The key name packaging module is used for packaging the key name of the data to be operated into a mapping main key, and the mapping main key is generated by the key name and the data classification identifier;
the data operation module is used for executing data operation according to the mapping main key;
If the to-be-operated data information further includes an expiration time of the to-be-operated data, the data operation module is further configured to: obtaining a mapping key value stored in a local storage space according to the mapping main key; generating a new mapping key value according to the expiration time and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated; and storing the encapsulated data to be operated into a local storage space.
10. The apparatus of claim 9, wherein if the data to be operated information further includes a key value of the data to be operated, the data operation module is further configured to:
searching whether a local storage space stores a mapping key value according to the mapping main key;
If not, taking the key value as a mapping key value, and taking the mapping main key and the mapping key value as encapsulated data to be operated; otherwise, obtaining a mapping key value corresponding to the mapping main key, generating a new mapping key value according to the key value and the mapping key value, and then taking the mapping main key and the new mapping key value as encapsulated data to be operated;
and storing the encapsulated data to be operated into a local storage space.
11. The apparatus of claim 10, wherein the data manipulation module is further configured to:
judging whether the mapping key value contains an expiration time or not;
If so, judging whether the data to be operated is expired according to the expiration time, deleting the data to be operated when the data to be operated is expired, and taking the key value as a new mapping key value; when the data to be operated is not expired, acquiring the expiration time of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time;
otherwise, the key value is used as a new mapping key value.
12. The apparatus of claim 9, wherein if the data to be operated information further includes a key value and an expiration time of the data to be operated, the data operation module is further configured to:
Generating a mapping key value according to the key value and the expiration time, and then taking the mapping main key and the mapping key value as encapsulated data to be operated;
and storing the encapsulated data to be operated into a local storage space.
13. The apparatus of claim 9, wherein the data manipulation module is further configured to:
Judging whether the mapping key value contains the original expiration time or not;
If so, judging whether the data to be operated is expired according to the original expiration time, deleting the data to be operated when the data to be operated is expired, acquiring a key value of the data to be operated from the mapping key value when the data to be operated is not expired, and generating a new mapping key value according to the key value and the expiration time;
Otherwise, obtaining the key value of the data to be operated from the mapping key value, and generating a new mapping key value according to the key value and the expiration time.
14. The apparatus according to any one of claims 10-13, further comprising a data determination module configured to:
and before the encapsulated data to be operated is stored in the local storage space, determining that the data corresponding to the mapping main key does not exist in the local storage space.
15. The apparatus of claim 9, wherein if the data to be operated information includes only a key name of the data to be operated, the data operation module is further configured to:
And searching data corresponding to the mapping main key from a local storage space according to the mapping main key.
16. The apparatus of claim 15, further comprising a data verification module configured to: after looking up the data corresponding to the mapped primary key from the local storage space,
Judging whether the data is out of date;
if the data is not expired or the expiration time is not set, returning the data;
Otherwise, deleting the data and returning a null value.
17. The apparatus of claim 9, wherein the apparatus is implemented based on a mapping object.
18. An electronic device for performing data operations at a client, comprising:
one or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-8.
19. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
CN201810151840.6A 2018-02-14 2018-02-14 Method and device for performing data operation on client Active CN110162412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810151840.6A CN110162412B (en) 2018-02-14 2018-02-14 Method and device for performing data operation on client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810151840.6A CN110162412B (en) 2018-02-14 2018-02-14 Method and device for performing data operation on client

Publications (2)

Publication Number Publication Date
CN110162412A CN110162412A (en) 2019-08-23
CN110162412B true CN110162412B (en) 2024-05-17

Family

ID=67635519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810151840.6A Active CN110162412B (en) 2018-02-14 2018-02-14 Method and device for performing data operation on client

Country Status (1)

Country Link
CN (1) CN110162412B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782549A (en) * 2020-07-31 2020-10-16 北京字节跳动网络技术有限公司 Test method and device and electronic equipment
CN112214351A (en) * 2020-10-12 2021-01-12 珠海格力电器股份有限公司 Backup data recovery method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618698A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information
CN105786879A (en) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 Page Cookie isolation method and apparatus
WO2017123859A1 (en) * 2016-01-15 2017-07-20 Instartlogic, Inc. Web cookie virtualization
CN107329910A (en) * 2017-06-27 2017-11-07 中南大学 A kind of web front end data based on localStorage are locally stored and access method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618698A (en) * 2013-11-08 2014-03-05 北京奇虎科技有限公司 Method and device for processing cookie information
CN105786879A (en) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 Page Cookie isolation method and apparatus
WO2017123859A1 (en) * 2016-01-15 2017-07-20 Instartlogic, Inc. Web cookie virtualization
CN107329910A (en) * 2017-06-27 2017-11-07 中南大学 A kind of web front end data based on localStorage are locally stored and access method

Also Published As

Publication number Publication date
CN110162412A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110019080B (en) Data access method and device
US7877682B2 (en) Modular distributed mobile data applications
US9716771B2 (en) Cache control for web application resources
CN107103011B (en) Method and device for realizing terminal data search
CN113760948A (en) Data query method and device
CN110109983B (en) Method and device for operating Redis database
CN110162412B (en) Method and device for performing data operation on client
WO2023092580A1 (en) Page display method and apparatus, storage medium, and electronic device
CN113434506B (en) Data management and retrieval method, device, computer equipment and readable storage medium
CN112783887A (en) Data processing method and device based on data warehouse
CN113761565B (en) Data desensitization method and device
CN108959294B (en) Method and device for accessing search engine
CN104850386A (en) Software system internationalization resource processing method
CN116069725A (en) File migration method, device, apparatus, medium and program product
KR102169930B1 (en) Semantic Information Management Method for a M2M/IoT platform
CN107526530B (en) Data processing method and device
CN112783914B (en) Method and device for optimizing sentences
CN113347052B (en) Method and device for counting user access data through access log
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
CN113704242A (en) Data processing method and device
CN115905274A (en) Data processing method and device, electronic equipment and medium
CN112988857A (en) Service data processing method and device
CN112699116A (en) Data processing method and system
CN112925573B (en) Method, device, equipment and computer readable medium for loading web page
CN112862510A (en) Method and device for managing advertisement resources

Legal Events

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