CN110944037A - Method, computer device and storage medium for client cache change configuration - Google Patents

Method, computer device and storage medium for client cache change configuration Download PDF

Info

Publication number
CN110944037A
CN110944037A CN201911022438.9A CN201911022438A CN110944037A CN 110944037 A CN110944037 A CN 110944037A CN 201911022438 A CN201911022438 A CN 201911022438A CN 110944037 A CN110944037 A CN 110944037A
Authority
CN
China
Prior art keywords
configuration
client
configuration change
index table
local cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911022438.9A
Other languages
Chinese (zh)
Other versions
CN110944037B (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201911022438.9A priority Critical patent/CN110944037B/en
Publication of CN110944037A publication Critical patent/CN110944037A/en
Application granted granted Critical
Publication of CN110944037B publication Critical patent/CN110944037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for changing configuration of client cache, computer equipment and a storage medium, wherein the method comprises the following steps: a first client logs in an equipment end to obtain the product model and equipment identification information of the equipment end; acquiring default configuration from a local cache of the first client according to the product model; acquiring a configuration change index table from a local cache of the first client according to the equipment identification information; according to the default configuration and the configuration change index table, the first client obtains the current configuration of the equipment terminal, and the configuration of the equipment terminal is cached and changed efficiently and accurately at the client.

Description

Method, computer device and storage medium for client cache change configuration
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a computer device, and a storage medium for changing a configuration of a client cache.
Background
The client is an important medium for user interaction of a plurality of external devices, and the user can check, set and change the configuration of the external devices through the client. Each time the client interacts with the external device, the client requests the current configuration from the external device, which causes waste of time and communication resources, and thus, a cache mechanism of the client is generated accordingly. However, in the related art, the caching mechanism is a browser cache, and the browser cache is divided by a Uniform Resource Locator (url), that is, a share of cache in the same domain space. For the same IP address accessed sequentially, the browser will use the same cache. If the IP addresses accessed successively are devices of different models, page confusion occurs, and the cache needs to be cleared for normal use.
Aiming at the problems that the caching mechanism of the client easily causes page disorder and is low in efficiency in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a method for changing configuration of a client cache, computer equipment and a storage medium, aiming at the problems that in the related art, a cache mechanism of a client easily causes page disorder and is low in efficiency.
According to an aspect of the present invention, there is provided a method for changing a configuration of a client cache, the method including:
a first client logs in an equipment end to obtain the product model and equipment identification information of the equipment end;
acquiring default configuration from a local cache of the first client according to the product model;
acquiring a configuration change index table from a local cache of the first client according to the equipment identification information;
and according to the default configuration and the configuration change index table, the first client obtains the current configuration of the equipment terminal.
In one embodiment, the obtaining the configuration change index table from the local cache of the first client according to the device identification information further includes:
and taking the local cache comprising the configuration change index table as a shared cache.
In one embodiment, after the local cache including the configuration change index table is used as a shared cache, the method further includes:
the first client subscribes a configuration change message to the equipment terminal, and updates the configuration change index table according to the configuration change message;
and the second client logs in the equipment end and only reads the configuration change index table in the shared cache.
In one embodiment, after the local cache including the configuration change index table is used as a shared cache, the method further includes:
the first client finishes logging in, and whether a second client logs in the equipment end or not is judged;
and if the configuration change index table exists, the second client subscribes a configuration change message to the equipment terminal, and updates the configuration change index table according to the configuration change message.
In one embodiment, obtaining the default configuration from the local cache of the first client according to the product model comprises:
the first client searches a local cache of the first client according to the product model, and judges whether default configuration corresponding to the product model exists or not;
if the default configuration exists, acquiring the default configuration from the local cache;
and if the default configuration does not exist, acquiring the default configuration from the equipment end, and storing the default configuration in the local cache.
In one embodiment, obtaining the configuration change index table from the local cache of the first client according to the device identification information includes:
the first client searches a local cache of the first client according to the equipment identification information and judges whether a configuration change index table corresponding to the equipment identification information exists or not;
if the local cache exists, acquiring the configuration change index table from the local cache;
and if the local cache does not exist, subscribing configuration change information from the equipment terminal, updating the configuration change index table according to the configuration change information, and storing the configuration change index table in the local cache.
In one embodiment, after the first client obtains the current configuration of the device according to the default configuration and the configuration change index table, the method further includes:
presenting the current configuration of the equipment terminal on a user interface of the first client, and receiving a configuration change instruction through the user interface;
judging whether the instruction indicates the equipment end to recover to the default configuration;
if so, deleting the configuration updating index table and sending the configuration changing instruction to the equipment end;
and if not, updating the configuration change index table and sending the configuration change instruction to the equipment terminal.
In one embodiment, the device identification information includes one of:
media Access Control (MAC) address and device serial number.
According to another aspect of the present invention, there is also provided a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the above method for client cache change configuration when executing the computer program.
According to another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described method of client cache change configuration.
According to the invention, a first client logs in an equipment terminal to obtain the product model and the equipment identification information of the equipment terminal; acquiring default configuration from a local cache of a first client according to the product model; acquiring a configuration change index table from a local cache of a first client according to the equipment identification information; according to the default configuration and the configuration change index table, the first client side obtains the configuration cache which accurately corresponds to the equipment side, and therefore the cache configuration can be accurately and quickly read on the client side.
Drawings
FIG. 1 is a schematic diagram of a client cache change configuration application scenario, according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first client 104 cache change configuration method according to an embodiment of the present invention;
FIG. 3 is a flowchart of the first client 104 obtaining a default configuration according to the product model of the device according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating the first client 104 obtaining the configuration change index table according to the device identifier of the device according to the embodiment of the present invention;
FIG. 5 is a flow diagram of a method for client 104 cache change configuration in accordance with another embodiment of the present invention;
FIG. 6 is a diagram illustrating a method for three clients to access a shared cache, according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating updating a configuration cache via a user interface according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an application scenario of a client cache change configuration according to an embodiment of the present invention, and as shown in fig. 1, the method may be applied in an application environment of the client cache change configuration method, where a device 102 communicates with a client 104 through a network, and the device 102 may be, but is not limited to, various digital video cameras, digital cameras, printers, network devices, and medical instruments. The first client 104, the second client 106, and the third client 108 are programs that provide local services for users, and are used to connect, view, and change the configuration of the device side 102, the first client 104, the second client 106, and the third client 108 may all connect to the device side 102 through a network, and the first client 104, the second client 106, and the third client 108 can read and write the configuration of the device side 102, and the first client 104, the second client 106, and the third client 108 can access the device side 102 at the same time. The computer device 110 is a carrier of the first client 104, the second client 106 and the third client 108, the first client 104, the second client 106 and the third client 108 are installed on the computer device 110, and the computer device 110 may be, but is not limited to, carriers of various clients such as a personal computer, a notebook computer, a smart phone, a tablet computer and a portable wearable device.
In an embodiment, fig. 2 is a flowchart of a first client 104 cache change configuration method according to an embodiment of the present invention, and as shown in fig. 2, a method for client cache change configuration is provided, which is described by taking the method as an example applied to the first client 104 and the second client 106 installed on the computer device 110 in fig. 1, and includes the following steps:
step S202, the first client 104 logs in the equipment terminal 102 and obtains the product model and the equipment identification information of the equipment terminal 102;
in step S202, the first client 104 logs in the device side 102, and after the first client 104 establishes communication interaction with the device side 102, the first client 104 first obtains a product model and device identification information of the device side 102 from the device side 102, where the product model is a set of codes for identifying a type of product, and the device identification information is a unique identification code of the device side 102 that is different from any other device side.
Step S204, acquiring default configuration from a local cache of the first client 104 according to the product model of the equipment terminal 102;
in step S204, a default configuration file corresponding to the product model under the local cache directory of the first client 104 is obtained according to the product model of the device 102, and a default configuration is read from the default configuration file, where the default configuration of the devices of the same model is the same and the default configuration may not be changed.
Step S206, obtaining a configuration change index table from the local cache of the first client 104 according to the device identification information;
in step S206, a configuration change index table corresponding to the product model in the local cache of the first client 104 is obtained according to the identification information of the device 102, and the first client 104 can know which configuration items of the device 102 have changed and current parameters of the changed configuration items according to the configuration change index table.
Step S208, the first client 104 obtains the current configuration of the equipment terminal according to the default configuration and the configuration change index table;
in step S208, the first client 104 may change the change item in the configuration change index table based on the default configuration according to the default configuration and the configuration change index table acquired in the local cache, so as to obtain the current configuration of the device.
Through the steps of the method, according to the default configuration corresponding to the product model and the configuration change index table corresponding to the device identification information, which is recorded in the configuration change index table according to the local cache directory of the device 102, which configuration items are changed and parameters after the change, then, on the basis of the default configuration, the changed configuration items are modified, so that the configuration cache accurately corresponding to the device 102 is obtained, the first client 104 caches and the configuration updating method obtain the configuration cache stored in the first client 104 by the device according to the product model and the identification information of the device 102, the problem of page confusion during cache reading is solved, and the cache is efficiently and accurately positioned.
In another embodiment, the local cache including the configuration change index table is used as a shared cache, that is, when the first client 104, the second client 106, and the third client 108 access the device 102 at the same time, the shared cache may be accessed at the same time to obtain the configuration change index table of the device 102, which saves storage resources on one hand, and on the other hand, as long as the first client 104 or the second client 106 obtains the configuration change information of the device 102 and updates the configuration change index table on the same computer device 110, the other clients may omit the process and directly obtain the updated configuration change index table from the shared cache, thereby improving the efficiency of the cache.
In an embodiment, after the step of using the local cache including the configuration change index table as the shared cache, if the first client 104 is a client that first logs in the device side 102 on the computer device 110, the first client 104 is used as a leading client, and the first client 104 is responsible for subscribing the configuration change message to the device side 102, and then acquiring all change configurations of the device according to the received configuration change message and updating the change configurations to the configuration change index table in the shared cache; the second client 106 and the third client 108 log in the device side 102 after the first client 104, and then the second client 106 and the third client 108 can only read the configuration index update table in the shared cache and cannot rewrite the same, and the second client 106 and the third client 108 cannot receive the configuration change message sent by the device side 102.
In an embodiment, when multiple clients on the same computer device 110 access the same device 102 simultaneously, and the first client 104 as the leading client finishes logging in and exits the process, it needs to determine whether other clients still maintain the log-in state, and if the second client 106 is still in the log-in state and randomly selected, it is promoted to the leading client, and then the second client 106 is responsible for subscribing the configuration change message to the device 102, and then obtains all the change configurations of the device according to the received configuration change message and updates the configuration change index table in the shared cache.
In an embodiment, fig. 3 is a flowchart of acquiring, by the first client 104, the default configuration according to the product model of the device in the embodiment of the present invention, as shown in fig. 3, in step S202, the first client 104 logs in the device terminal 102 and acquires the product model of the device terminal 102; step S302, whether a default configuration file corresponding to the model exists under the local cache directory is searched according to the model of the product; if yes, it indicates that there is a device with the client logged in the model, then, as described in step S204 above, the default configuration is obtained from the local cache of the first client 104 according to the product model of the device 102; if not, it indicates that there is a client logging in the device of the type for the first time on the computer device 110, at this time, step S304 is entered, the first client 104 obtains the default configuration from the device 102, and stores the default configuration in the local cache corresponding to the product type.
In an embodiment, fig. 4 is a flowchart of acquiring, by the first client 104, the configuration change index table according to the device identifier of the device in the embodiment of the present invention, as shown in fig. 4, in step S202, the first client 104 logs in the device 102 to acquire the device identifier information of the device 102; step S402 determines whether there is a client logging in the device 102 for the first time, and searches whether there is a configuration change index table of the device 102 in the local cache, if so, it indicates that there is a client logging in the device 102, and as above, step S204 obtains the configuration change index table from the local cache of the first client 104 according to the device identification information of the device 102; if not, it indicates that there is a client logging in the device side 102 on the computer device 110 for the first time, at this time, step S404 is entered, and the first client 104 subscribes a configuration change message to the device side 102; step S406, the first client 104 obtains all configuration change items of the device 102 according to the configuration change message; in step S408, the first client 104 updates all configuration change items to the configuration change index table, and stores the configuration change index table in the local cache corresponding to the device identification information. In this embodiment, a determination process is added in the process of obtaining the configuration change index table from the local cache of the first client according to the device identification information, and a process of subscribing the configuration change message during first login, updating the changed configuration item to the configuration change index table, and storing the configuration change index table in the local cache is added in consideration of the condition that the client logs in the device 102 for the first time, so that the process of obtaining the configuration change index table cache is more complete and reliable.
In an embodiment, in this embodiment, the client may accurately and quickly display the existing configuration of the device end on the user interface according to the obtained configuration cache, and may change the configuration of the device end 102 according to a configuration change instruction received by the user interface, where the configuration change instruction may be to restore the device end 102 to a default configuration, or may be to change the existing configuration of the device end 102, and when the received instruction is to restore the default configuration, the client deletes the configuration update index table in the local cache, and forwards the configuration change instruction to the device end 102; when the received configuration change instruction is not to restore the default configuration but is to change the existing configuration, the client updates the configuration change index table in the local cache according to the configuration change instruction and forwards the configuration change instruction to the device 102, which takes into account the situation that the user modifies the configuration of the device 102 through the client user interface, and modifies the configuration change index table in the local cache before forwarding the received configuration change instruction to the device 102, so that the process that the client requests the existing configuration from the device 102 again after the device 102 changes the configuration according to the configuration change instruction is saved, and the caching efficiency is improved.
In one embodiment, the device identification information may include one of: a media access control address MAC address and a device serial number, wherein, since the device identification information is a unique identifier of the device side 102 different from any other device side, the media access control address, that is, the MAC address and the device serial number are provided as options.
In a specific embodiment, fig. 5 is a flowchart of a method for changing configuration of a cache of a client 104 according to another embodiment of the present invention, and as shown in fig. 5, the method includes the following steps:
step S502, the first client 104 logs in the equipment end and establishes connection with the equipment end 102;
step S504, the first client 104 obtains the product model and the MAC address of the device 102, where the obtaining process may be an active request of the first client 104 or a passive obtaining by the client after the device 102 establishes a connection;
step S506, determining whether to log in the model device for the first time, according to the obtained device model, the first client 104 first searches for whether there is a default configuration file named by the model under the local cache directory, and if not, it indicates that there is a client on the computer device 110 where the first client 104 is located to log in the model device for the first time; if yes, the fact that the computer device 110 where the first client 104 is located has a device of which the client logs in the model is indicated;
step S508, when a client logs in the device of the model for the first time on the computer device 110 where the first client 104 is located, acquiring a default configuration from the device 102, directly naming the product model of the device, and storing the device in the local cache directory;
step S510, when the computer device 110 where the first client 104 is located does not have a device with the model that the client logs in for the first time, the first client 104 reads a default configuration file named by the model from a local cache;
step S512, according to the obtained MAC address of the device, the first client 104 first searches whether a configuration change index table named by the MAC address exists in the local shared cache directory, and if not, it indicates that a client logs in the device for the first time on the computer device 110 where the first client 104 is located;
step S514, when the computer device 110 where the first client 104 is located has a client logged in, the first client 104 directly reads the configuration change index table from the shared cache;
step S516, as the first client on the computer device 110 logging in the MAC address, subscribing to the device 102 for configuration change messages, and pushing subsequent device configuration change messages to the first client 104;
step S518, the first client 104 sequentially obtains all the changed current configurations from the device 102 according to the received device configuration change message;
step S520, generating a configuration change index table, creating a shared cache, and storing the configuration change index table in the hash table and in the shared cache;
in step S522, the first client 104 updates the configuration change index table in the shared cache in time after receiving the device configuration change instruction.
On the basis of the foregoing embodiment, fig. 6 is a schematic diagram of a method for three clients to access a shared cache according to an embodiment of the present invention, and as shown in fig. 6, when three clients in one computer device 110 simultaneously access a device 102 with the same MAC address, only one client process is a master process, the client process is responsible for maintaining a configuration change index table, and all the other client processes only read the configuration change index table. That is, only the first client 104 is responsible for receiving the configuration change information of the device and maintaining the configuration change index table, and the second client 106 and the third client 108 only read the configuration change index table.
When the master process is closed, that is, when the first client 104 logs out, one client process is randomly promoted to be the master process, for example, the second client 106 is promoted to be the master client, and then only the second client 106 subscribes to the configuration change message from the device 102 and maintains the configuration change index table.
In addition, fig. 7 is a schematic diagram of updating a configuration cache through a user interface according to an embodiment of the present invention, and as shown in fig. 7, when a configuration change instruction is received from the user interface, a client updates a configuration and performs caching instead of sending to a device.
And when the instruction received from the user interface is to acquire the default configuration, the client directly calls the default configuration from the local cache and returns the default configuration to the user interface, and all the default configurations are presented on the user interface.
When the instruction received from the user interface is to obtain the current configuration, the client calls the default configuration from the local cache, then calls the configuration update index table from the shared cache, generates the current configuration according to the default configuration and the configuration change index table, returns the current configuration to the user interface, and displays the current configuration on the user interface.
When the instruction received from the user interface is to restore the default message and to save the configuration, the client deletes the configuration update index table and sends an instruction to restore the default message to the device.
When the instruction received from the user interface is to change the current configuration and save the configuration, the client updates the configuration change index table according to the configuration item required to be changed, and sends a configuration change instruction to the device.
The configuration change index table is used for recording the changed configuration, accumulating the mac address character ascii codes as an index, and storing the hash.
Two hash tables are involved in this storage structure:
a. and accumulating the ascii code of the mac address character as an index, storing a configuration management type pointer, a mac character string and a next node pointer in the node (solving hash collision in a zipper mode).
Figure BDA0002247659020000101
b. In the configuration management class, a node linked list (solving hash conflict in a zipper mode) which takes the accumulation of configuration name ascii codes as an index and stores specific configuration change is maintained in the node.
Figure BDA0002247659020000102
The specific configuration change node linked list is as follows:
Figure BDA0002247659020000103
Figure BDA0002247659020000111
in one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
a first client logs in an equipment end to obtain the product model and equipment identification information of the equipment end;
acquiring default configuration from a local cache of the first client according to the product model;
acquiring a configuration change index table from a local cache of the first client according to the equipment identification information;
and according to the default configuration and the configuration change index table, the first client obtains the current configuration of the equipment terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and taking the local cache comprising the configuration change index table as a shared cache.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the first client subscribes a configuration change message to the equipment terminal, and updates the configuration change index table according to the configuration change message;
and the second client logs in the equipment end and only reads the configuration change index table in the shared cache.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the first client finishes logging in, and whether a second client logs in the equipment end or not is judged;
and if the configuration change information exists, the second client subscribes to the configuration change information from the equipment terminal, and updates the configuration change information to the configuration change index table.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the first client searches a local cache of the first client according to the product model, and judges whether default configuration corresponding to the product model exists or not;
if the default configuration exists, acquiring the default configuration from the local cache;
and if the default configuration does not exist, acquiring the default configuration from the equipment end, and storing the default configuration in the local cache.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the first client searches a local cache of the first client according to the equipment identification information and judges whether a configuration change index table corresponding to the equipment identification information exists or not;
if the local cache exists, acquiring the configuration change index table from the local cache;
and if the local cache does not exist, subscribing a configuration change message from the equipment terminal, updating the configuration change index table according to the configuration change message, and storing the configuration change index table in the local cache.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
presenting the current configuration of the equipment terminal on a user interface of the first client, and receiving a configuration change instruction through the user interface;
judging whether the instruction indicates the equipment end to recover to the default configuration;
if so, deleting the configuration updating index table and sending the configuration changing instruction to the equipment end;
and if not, updating the configuration change index table and sending the configuration change instruction to the equipment terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the device identification information includes one of:
a media access control address MAC address and a device serial number.
A readable storage medium having stored thereon an executable program, which when executed by a processor, implements the above-described method for client cache change configuration.
The readable storage medium can realize that the client reads the default configuration and the configuration change index table corresponding to the equipment terminal from the local cache directory of the client according to the product model and the equipment identification information of the equipment terminal through the executable program stored in the readable storage medium, and then modifies the changed configuration item on the basis of the default configuration to obtain the configuration cache corresponding to the equipment terminal, thereby efficiently and accurately operating the configuration cache of the equipment terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for client cache change configuration, the method comprising:
a first client logs in an equipment end to obtain the product model and equipment identification information of the equipment end;
acquiring default configuration from a local cache of the first client according to the product model;
acquiring a configuration change index table from a local cache of the first client according to the equipment identification information;
and according to the default configuration and the configuration change index table, the first client obtains the current configuration of the equipment terminal.
2. The method of claim 1, wherein obtaining a configuration change index table from a local cache of the first client according to the device identification information further comprises:
and taking the local cache comprising the configuration change index table as a shared cache.
3. The method of claim 2, wherein said caching the local cache including the configuration change index table as a shared cache further comprises:
the first client subscribes a configuration change message to the equipment terminal, and updates the configuration change index table according to the configuration change message;
and the second client logs in the equipment end and only reads the configuration change index table in the shared cache.
4. The method of claim 2, wherein said caching the local cache including the configuration change index table as a shared cache further comprises:
the first client finishes logging in, and whether a second client logs in the equipment end or not is judged;
and if the configuration change index table exists, the second client subscribes a configuration change message to the equipment terminal, and updates the configuration change index table according to the configuration change message.
5. The method of claim 1, wherein obtaining the default configuration from the local cache of the first client according to the product model comprises:
the first client searches a local cache of the first client according to the product model, and judges whether default configuration corresponding to the product model exists or not;
if the default configuration exists, acquiring the default configuration from the local cache;
and if the default configuration does not exist, acquiring the default configuration from the equipment end, and storing the default configuration in the local cache.
6. The method of claim 1, wherein obtaining a configuration change index table from a local cache of the first client according to the device identification information comprises:
the first client searches a local cache of the first client according to the equipment identification information and judges whether a configuration change index table corresponding to the equipment identification information exists or not;
if the local cache exists, acquiring the configuration change index table from the local cache;
and if the local cache does not exist, subscribing a configuration change message from the equipment terminal, updating the configuration change index table according to the configuration change message, and storing the configuration change index table in the local cache.
7. The method according to claim 1, wherein after the first client obtains the current configuration of the device according to the default configuration and the configuration change index table, the method further comprises:
presenting the current configuration of the equipment terminal on a user interface of the first client, and receiving a configuration change instruction through the user interface;
judging whether the instruction indicates the equipment end to recover to the default configuration;
if so, deleting the configuration updating index table and sending the configuration changing instruction to the equipment end;
and if not, updating the configuration change index table and sending the configuration change instruction to the equipment terminal.
8. The method of claim 1, wherein the device identification information comprises one of:
a media access control address MAC address and a device serial number.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 8 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201911022438.9A 2019-10-25 2019-10-25 Method, computer device and storage medium for client cache change configuration Active CN110944037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911022438.9A CN110944037B (en) 2019-10-25 2019-10-25 Method, computer device and storage medium for client cache change configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911022438.9A CN110944037B (en) 2019-10-25 2019-10-25 Method, computer device and storage medium for client cache change configuration

Publications (2)

Publication Number Publication Date
CN110944037A true CN110944037A (en) 2020-03-31
CN110944037B CN110944037B (en) 2023-04-07

Family

ID=69907190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911022438.9A Active CN110944037B (en) 2019-10-25 2019-10-25 Method, computer device and storage medium for client cache change configuration

Country Status (1)

Country Link
CN (1) CN110944037B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522749A (en) * 2020-04-26 2020-08-11 北京三快在线科技有限公司 Page testing method and device, readable storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017020743A1 (en) * 2015-08-06 2017-02-09 阿里巴巴集团控股有限公司 Method and device for sharing cache data
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object
CN107800781A (en) * 2017-10-12 2018-03-13 深圳市买买提乐购金融服务有限公司 A kind of configuration data processing method and device
CN108566411A (en) * 2018-02-07 2018-09-21 链家网(北京)科技有限公司 Static resource acquisition methods, electronic equipment and storage medium
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017020743A1 (en) * 2015-08-06 2017-02-09 阿里巴巴集团控股有限公司 Method and device for sharing cache data
CN107547239A (en) * 2016-10-27 2018-01-05 腾讯科技(深圳)有限公司 Configure the update method and device of object
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration
CN107800781A (en) * 2017-10-12 2018-03-13 深圳市买买提乐购金融服务有限公司 A kind of configuration data processing method and device
CN108566411A (en) * 2018-02-07 2018-09-21 链家网(北京)科技有限公司 Static resource acquisition methods, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111522749A (en) * 2020-04-26 2020-08-11 北京三快在线科技有限公司 Page testing method and device, readable storage medium and electronic equipment
CN111522749B (en) * 2020-04-26 2023-04-11 北京三快在线科技有限公司 Page testing method and device, readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110944037B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN106933854B (en) Short link processing method and device and server
CN107943594B (en) Data acquisition method and device
CN108449405B (en) Event reminding method and device, computer equipment and storage medium
EP2985705A2 (en) Webpage access method and apparatus, and router
US10250526B2 (en) Method and apparatus for increasing subresource loading speed
CN106533944B (en) Distributed API gateway, management method and management system
JP6588477B2 (en) Remote information query method and server
CN110677492B (en) Access request processing method and device, electronic equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN110213392B (en) Data distribution method and device, computer equipment and storage medium
CN113886743B (en) Method, device and system for refreshing cache resources
CN106446640B (en) User knows method for distinguishing and server
CN102404242A (en) User information updating device, electric equipment and user information updating method
CN110944037B (en) Method, computer device and storage medium for client cache change configuration
CN108055299B (en) Portal page pushing method, network access server and Portal authentication system
CN108038714B (en) Advertisement promotion processing method and device
CN111241438B (en) Cartoon picture display method, cartoon picture display device, cartoon picture display computer readable storage medium and cartoon picture display computer equipment
CN113055503A (en) IPv6 webpage link processing method, device, equipment and readable storage medium
CN110460685B (en) User unique identifier processing method and device, computer equipment and storage medium
CN111797334A (en) Website access method and device, electronic equipment and storage medium
CN106469166B (en) A kind of information processing method and device
JP6233846B2 (en) Variable-length nonce generation
CN107203915B (en) Data storage method and device
CN114745146B (en) Jump interception method, apparatus, readable storage medium and device
CN112328922A (en) Processing method and device

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