CN113515530A - Cache object updating method, device, equipment and storage medium - Google Patents

Cache object updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN113515530A
CN113515530A CN202110340680.1A CN202110340680A CN113515530A CN 113515530 A CN113515530 A CN 113515530A CN 202110340680 A CN202110340680 A CN 202110340680A CN 113515530 A CN113515530 A CN 113515530A
Authority
CN
China
Prior art keywords
cache
updating
cache object
advance
state information
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
CN202110340680.1A
Other languages
Chinese (zh)
Other versions
CN113515530B (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.)
Guizhou Baishancloud Technology Co Ltd
Original Assignee
Guizhou Baishancloud 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 Guizhou Baishancloud Technology Co Ltd filed Critical Guizhou Baishancloud Technology Co Ltd
Priority to CN202110340680.1A priority Critical patent/CN113515530B/en
Publication of CN113515530A publication Critical patent/CN113515530A/en
Priority to PCT/CN2022/082248 priority patent/WO2022206487A1/en
Application granted granted Critical
Publication of CN113515530B publication Critical patent/CN113515530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a cache object updating method, a cache object updating device, equipment and a storage medium, wherein the method comprises the following steps: receiving an object acquisition request sent by a client, and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach; acquiring relevant state information of a cache object; judging whether to update the cache object in advance according to the relevant state information; if yes, updating the cache object in advance, and responding to the object acquisition request. According to the method and the device, before the cache object is invalid, whether the cache object needs to be updated in advance is judged according to the relevant state information of the object, and the time delay of response to the client caused by updating after the object is invalid is prevented from being too long. The method provides a more intelligent way for judging whether to update, can adapt to more and more complex network service environments, comprehensively caches one or more of the state of the server, the state of the client and the state of the object, and determines the adopted object updating strategy. The method can provide a more accurate cache object for the client, and the cache object is updated more timely.

Description

Cache object updating method, device, equipment and storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for updating a cache object.
Background
At present, a plurality of network communication scenes are provided with a cache server, a source station caches an object in the cache server, and the cached object provides an object query service for a user. The objects of the source station are continuously updated, and accordingly, the objects cached in the cache server are also required to be updated.
In the related art, an object updating method is provided, which sets a validity period for a cached object, and all requests for the object are responded to by using the cached object within the validity period. After the validity period is over, when the cache server receives the request of the client to the object again, the cache server returns to the source station to obtain the object again, the cache server sends an object updating request to the source station, and the validity period of the object is determined again. If the object is not updated in the source station, the source station informs the cache server that the object is not updated, and the cache server sends the cached object to the client. If the object is updated in the source station, the source station sends the updated object to the cache server. And the cache server replaces the current cached object with the updated object and sends the updated object to the client.
The related technology requests the source station to update the object after the validity period of the object is finished, and if the source station updates the object in advance before the validity period of the object is finished, the client side can obtain the expired content; on the contrary, if the object is updated again after the validity period ends, the client needs to wait for the edge server to return to the source to obtain the updated object, which results in a longer response time delay for the client.
Disclosure of Invention
The application provides a cache object updating method, a cache object updating device and a cache object updating storage medium, wherein before a cache object fails, whether the cache object needs to be updated in advance is judged according to relevant state information of the object, so that the time delay of response to a client caused by updating the object after an effective period is avoided from being too long, a more accurate cache object can be provided for the client, the cache object is updated more timely, a more intelligent mode of judging whether the cache object is updated is provided, and the cache object updating method can adapt to more and more complex network service environments.
An embodiment of a first aspect of the present application provides a cache object updating method, which is applied to a cache server, and includes:
receiving an object acquisition request sent by a client, and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach;
acquiring relevant state information corresponding to the cache object;
judging whether to update the cache object in advance according to the relevant state information;
if yes, updating the cache object in advance, and responding to the object acquisition request.
In some embodiments of the present application, the determining whether to update the cache object in advance according to the relevant state information includes:
determining an updating condition corresponding to the cache object according to a preset configuration rule and the relevant state information;
judging whether the current cache object meets the updating condition;
if yes, determining that the cache object needs to be updated in advance;
if not, determining that the cache object does not need to be updated in advance.
In some embodiments of the present application, the relevant state information includes one or more of object state information corresponding to the cache object, client state information corresponding to the client, and system state information corresponding to the cache server;
the determining, according to a preset configuration rule and the relevant state information, an update condition corresponding to the cache object includes:
determining an advance updating rule which is accorded with the cache object from a preset configuration rule according to the relevant state information, wherein the advance updating rule comprises an advance time length for updating the cache object in advance;
and generating an updating condition corresponding to the cache object according to the updating rule in advance and the validity period of the cache object.
In some embodiments of the present application, the update condition includes: and the time when the object acquisition request corresponding to the cache object is received is within the range of the advance time length before the effective period of the cache object, and/or the advance updating time determined according to the effective period of the cache object and the advance time length included in the advance updating rule.
In some embodiments of the present application, the determining, according to the relevant state information, an update rule in advance to which the cache object conforms from a preset configuration rule includes:
and determining an advance time corresponding to the object type from a preset configuration rule according to the object type of the cache object included in the relevant state information.
In some embodiments of the present application, further comprising: if the advanced time length is greater than a preset threshold value, acquiring a periodic updating rule from the preset configuration rule, wherein the periodic updating rule is used for stipulating updating once every preset unit time length;
and determining the advance time length and the periodic updating rule as the advance updating rule which is accorded with the cache object.
In some embodiments of the present application, the determining, according to the relevant state information, an update rule in advance to which the cache object conforms from a preset configuration rule includes:
determining the requested times of the cache object within a preset time length nearest to the current time according to the object identification information of the cache object, which is included in the relevant state information;
if the requested times are greater than preset times, acquiring an advance time length corresponding to the preset times and an expiration updating rule from a preset configuration rule, wherein the expiration updating rule is used for stipulating updating when the valid period of the object is ended;
and determining the advance time length and the expiration updating rule as the advance updating rule which is met by the cache object.
In some embodiments of the present application, the updating the cache object and responding to the object obtaining request include:
obtaining a latest version object corresponding to the cache object from a source server, and replacing the locally stored cache object with the latest version object; sending the latest version object to the client; alternatively, the first and second electrodes may be,
sending the cache object to the client; and meanwhile, acquiring a latest version object corresponding to the cache object from a source server through a local background, and replacing the locally stored cache object with the latest version object.
In some embodiments of the present application, the obtaining a latest version object corresponding to the cached object from an origin server includes:
generating an object updating request corresponding to the cache object;
adding the version identification of the cache object in the object updating request;
sending the object updating request to an origin server;
and receiving the latest version object corresponding to the version identification returned by the source server.
In some embodiments of the present application, further comprising: and updating the cache object again when the valid period of the cache object is over.
In some embodiments of the present application, the updating the cache object includes:
and if the latest version object corresponding to the cache object does not exist in the source server, receiving a third status code sent by the source server, wherein the third status code is used for indicating that the cache object in the source server is not updated.
An embodiment of a second aspect of the present application provides a cache object updating apparatus, including:
the receiving module is used for receiving an object acquisition request sent by a client and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach;
the acquisition module is used for acquiring the relevant state information corresponding to the cache object;
the judging module is used for judging whether to update the cache object in advance according to the relevant state information;
and the updating module is used for updating the cache object in advance and responding to the object acquisition request if the judging module judges that the cache object needs to be updated in advance.
Embodiments of the third aspect of the present application provide an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of the first aspect.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executable by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
in the embodiment of the application, before the validity period of the cache object in the cache server is finished, whether the cache object needs to be updated in advance is judged according to the relevant state information corresponding to the cache object, and the cache object can be updated in time when the cache object needs to be updated in advance, so that the response time delay to the client caused by updating the object after the validity period is finished is avoided being too long, a more accurate cache object is provided for the client, and the cache object is updated more timely. According to the related state information of the cache object, a more intelligent mode for judging whether the object is updated is provided, and the method can adapt to more and more complex network service environments.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings.
In the drawings:
fig. 1 is a flowchart illustrating a cache object updating method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a network architecture based on which a cache object updating method provided in an embodiment of the present application is based;
FIG. 3 is a flow diagram illustrating a process for retrieving a latest version of an object from an origin server according to an embodiment of the present application;
fig. 4 is another flowchart illustrating a cache object updating method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram illustrating a cache object updating apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a storage medium according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
The following describes a cache object updating method, apparatus, device and storage medium according to an embodiment of the present application with reference to the drawings.
The embodiment of the application provides a cache object updating method, wherein before the expiration date of a cache object in a cache server is finished, whether the cache object needs to be updated in advance is judged according to relevant state information corresponding to the cache object, and when the cache object needs to be updated in advance, the cache object can be updated in time, so that the response delay of a client caused by updating the object after the expiration date is finished is avoided. In addition, the embodiment of the application provides a more intelligent way for judging whether to update the object by improving the update condition of the object, can adapt to more and more complex network service environments, integrates one or more combinations of the system state of the cache server, the state of the client requesting the object and the state of the object, and determines the adopted object update strategy by integrating the aspects. The method is beneficial to improving the condition that the cache server provides a more accurate cache object for the client under the conditions of different geographic positions, load levels, network environments, source server states and the like, and the cache object is updated more timely.
In an embodiment of the present application, the object may be a character string, a file, or other data, and the cache server may be a cache server in a CDN (Content Delivery Network), or may be a database or a server having a cache function.
Referring to fig. 1, the method specifically includes the following steps:
step 101: receiving an object acquisition request sent by a client, and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach.
An execution main body of the embodiment of the application is a cache server, a network architecture where the cache server is located is shown in fig. 2, the network architecture comprises the cache server, a source server and a client, the client is connected with the cache server through a network, and the cache server is connected with the source server through the network. The source server may be another cache server located at a higher level than the cache server, or may be a source station as an object provider, such as a server of a website owner in an HTTP website. In the network architecture, a cache server acquires an object from an origin server and caches the object, and a client acquires the object from the cache server.
When a user needs to check a certain object, an object acquisition request is sent to the cache server through the client, and the object acquisition request carries client identification information, object identification information corresponding to the requested object and the like. The client identification information may be a device identification or an IP (Internet Protocol) address corresponding to the client. The object identification information may be a URL (Uniform Resource Locator) of the object, and the object identification information may also include protocol information, for example, HTTP:// test.com/path/a.mp4 may be object identification information corresponding to an a object in mp4 format, and the protocol information is an HTTP protocol.
A large number of cache objects are stored in the cache server, and each cache object is stored corresponding to respective object identification information. And each cache object is provided with a corresponding validity period, and the cache object can be used for providing service for the client only if the cache object is valid in the validity period of the cache object. And after the validity period is exceeded, the cache object is invalid and can not be used for providing service for the client. After receiving the object obtaining request sent by the client, the cache server parses the object identification information from the object obtaining request, queries whether a cache object corresponding to the object identification information exists in a local cache, if so, judges whether the current system time reaches the validity period corresponding to the cache object, and if not, judges whether the cache object needs to be updated in advance through step 102 and subsequent operations.
If the cache server does not inquire the cache object corresponding to the object identification information in the local cache, or the cache object corresponding to the object identification information is inquired, the validity period corresponding to the cache object is judged to be reached, the fact that an object capable of responding to the object acquisition request of the client does not exist in the current cache server is indicated, the cache server directly sends an object updating request to the source server, and the object updating request carries the object identification information. After receiving the object update request, the source server obtains the latest version object with the highest version in all the objects corresponding to the object identification information, and sends the latest version object to the cache server. The cache server receives the latest version object and sends the latest version object to the client. The cache server also locally caches the corresponding relation between the object identification information and the latest version object, and records the updating time of the latest version object and the setting period of validity for the latest version object. If the cache server stores the overdue cache object corresponding to the object identification information, the corresponding relation between the object identification information and the overdue cache object and the information such as the validity period corresponding to the overdue cache object are deleted.
Step 102: and acquiring the relevant state information corresponding to the cache object.
If the cache server determines that the cache object corresponding to the object obtaining request of the client is locally stored in step 101 and determines that the validity period of the cache object does not reach, obtaining relevant state information corresponding to the cache object, where the relevant state information includes one or more combinations of object state information corresponding to the cache object, client state information corresponding to the client, and system state information corresponding to the cache server.
The object state information corresponding to the cache object includes one or more combinations of state information such as the last update time, the valid state, the valid period, the object type, the object caching requirement indicated by the source server, the concurrence condition, the state responded by the last update source server, the attribute change condition of the last update, the requested times and the like. The client state information includes client identification information, protocol information, request parameters, and the like. The system state information corresponding to the cache server includes the geographical location where the cache server is located, the system time, the time zone where the cache server is located, the network environment or the current system state of the cache server, and the current system state includes the load level of the cache server, the length of the waiting queue or the state of other related software.
Step 103: and judging whether to update the cache object in advance according to the relevant state information, and if so, executing the step 104.
In this embodiment, a preset configuration rule is set in the cache server, and the preset configuration rule specifies that different state information correspondingly adopts different update-ahead rules, for example, the preset configuration rule may specify that an object with an object type of mp4 is updated 5 minutes ahead, and so on.
After the relevant state information corresponding to the cache object is obtained through step 102, the update condition corresponding to the cache object is determined according to the preset configuration rule and the obtained relevant state information. Specifically, according to the acquired relevant state information, an advance update rule which the cache object conforms to is determined from preset configuration rules, wherein the advance update rule at least comprises an advance time length for updating the cache object in advance. And generating an updating condition corresponding to the cache object according to the determined advance updating rule and the validity period of the cache object.
In an embodiment of the present application, the update condition may be that, if the time when the object acquisition request corresponding to the current cache object is received is located within a range of a time length ahead of the validity period of the cache object, the cache object is updated.
In some embodiments of the present application, since there are objects of object types with larger data volume, the objects are usually provided with longer validity period, and the objects with larger data volume can be updated in advance for a longer time. For an object with a small data volume and a short validity period, a short advance time length can be set, and even advance updating is not performed. The preset configuration rules specify the corresponding relationship between some object types and the advance time length. After the cache server obtains the relevant state information corresponding to the cache object, the object type of the cache object is extracted from the relevant state information, and the advance time corresponding to the object type is determined from the preset configuration rule.
Under the condition that the advance time length is longer, in order to avoid the change of the cache object in the last advance time length, a periodical updating rule is set in the preset configuration rule when the advance time length is greater than a preset threshold value, and the periodical updating rule is used for stipulating updating once every preset unit time length. Therefore, after the advance time length corresponding to the object type is determined through the above method, if the advance time length is greater than the preset threshold, the periodic update rule is obtained from the preset configuration rule, and the advance time length and the periodic update rule are determined as the advance update rule which the cache object conforms to. The preset unit time may be 1 minute or 1.5 minutes, etc. The preset threshold may be 2 minutes, 3 minutes, or 5 minutes, etc.
After the updating rule in advance corresponding to the cache object is determined through the method, the updating condition corresponding to the cache object is generated according to the determined updating rule in advance and the validity period of the cache object. Namely, the updating-ahead time is determined according to the validity period of the cache object and the updating-ahead time length included in the updating-ahead rule. And determining each updating time of the periodic updating according to the advanced updating time, the validity period and the periodic updating rule. And determining the determined advanced updating time and each updating time of the periodic updating as the updating condition corresponding to the cache object. Subsequently, whether the cache object needs to be updated in advance can be judged by judging whether the current time belongs to the updating time included in the updating condition.
As to the above-described manner of determining the update condition according to the object type, the validity period, and the like of the cache object, a specific example is described below. For example, mp4 type objects are typically used for video on demand, and objects are larger with longer validity periods. The corresponding advance time length of the object type MP4 is configured to be 5 minutes in the preset configuration rule, and the advance time length is set to be more than or equal to 5 minutes and is updated every other minute. When the object identification information carried in the object acquisition request sent by the client is http:// test.com/path/a.mp4, after the cache object a is judged to be stored in the cache server and the validity period of the cache object a is not reached, the relevant state information corresponding to the cache object a is acquired, and the relevant state information comprises the object type mp4, the validity period 11:00 and the like of the cache object a. According to the requested object type mp4, the advance time length corresponding to mp4 is obtained from the preset configuration rule for 5 minutes and is determined to be updated every other minute within 5 minutes. According to the periodic updating rule that the time length is 5 minutes in advance, the updating is carried out every other minute and the effective period is 11:00, the updating time corresponding to the cache object a is determined to comprise 10:55, 10:56, 10:57, 10:58, 10:59 and 11: 00. If the time when the current object request is received is within the range of the advanced time length before the validity period of the cache object (for example, 10:56:10), determining that the update condition corresponding to the cache object a is that the cache object a is actively or based on the client request to be updated at the current system time (10:56:10) and/or when the system time reaches the update times (10:57, 10:58, 10:59, and 11: 00). And subsequently carrying out updating operation when the system time is judged to reach 10:57, 10:58, 10:59 or 11: 00.
Optionally, when the cache object a corresponds to multiple update times, if there are multiple requests in each period of the update time, only one time of source return update is needed.
Unlike mp4 files, m3u8 files are often used for live broadcasting, are small and have short validity time, so that no update rule is set for m3u8 files in preset configuration rules, and update is performed when the files fail. Or setting the advance time length corresponding to the file type m3u8 as 0 in the preset configuration rule, and not updating the file before the validity period of the m3u8 is ended. When the file identification information carried in the file acquisition request sent by the client is http:// test.com/path/b.m3u8, after the cache object b is judged to be stored in the cache server and the validity period of the cache object b is not reached, the relevant state information corresponding to the cache object b is acquired, and the relevant state information comprises the file type m3u8, the validity period 11:00 and the like of the cache object b. According to the requested file type m3u8, querying the corresponding advance time length from the preset configuration rule to know that the advance time length corresponding to m3u8 is 0 or the advance time length corresponding to m3u8 is not configured in the preset configuration rule, not setting an updating condition for the cache object b, and then actively updating the cache object b or based on a client request after the system time reaches 11:00 (including 11: 00).
In other embodiments of the present application, some cache objects in the cache server are requested a large number of times in a short time, in order to reduce the waiting time for the client to request the cache objects, a short advance time length is configured in the preset configuration rule for the cache objects, and in order to ensure that the objects are synchronized with the source server within the advance time length, the cache objects are set in the preset configuration rule to be updated again at the end of the valid period of the cache objects. Specifically, the cache server records a corresponding relationship between the object identification information of each cache object and the requested times, and the requested times of the cache objects only record the requested times within a preset duration closest to the current time. After the cache server obtains the relevant state information corresponding to the cache object, the requested times of the cache object in the preset time length closest to the current time are determined according to the object identification information of the cache object, which is included in the relevant state information. If the requested times are greater than the preset times, acquiring an advance time length corresponding to the preset times and an expiration updating rule from a preset configuration rule, wherein the expiration updating rule is used for stipulating updating when the valid period of the object is ended. And determining the advance time length and the expiration updating rule as the advance updating rule which is accorded by the cache object. The preset time period may be 10 seconds or 15 seconds. The preset number of times may be 100 times, 200 times, etc.
After the updating rule in advance corresponding to the cache object is determined through the method, the updating condition corresponding to the cache object is generated according to the determined updating rule in advance and the validity period of the cache object. Namely, the updating-ahead time is determined according to the validity period of the cache object and the updating-ahead time length included in the updating-ahead rule. And determining each updating time of the periodic updating according to the updating time in advance, the valid period and the due updating rule. And determining the determined advanced updating time and the determined due updating time as the updating condition corresponding to the cache object. Subsequently, whether the cache object needs to be updated can be judged by judging whether the current time belongs to the updating time included in the updating condition.
With regard to the above-described manner of determining the update condition according to the information of the requested number of times, the validity period, and the like of the cache object, a specific example will be described below. For example, the preset configuration rule sets an advanced time length corresponding to a cache object whose requested times exceed 100 times within 10 seconds to be 10 seconds, and sets an expired update rule that is updated again when the validity period of the cache object is over. When the object identification information carried in the object acquisition request sent by the client is http:// test.com/a/body.css, after the cache object body is judged to be stored in the cache server and the validity period of the cache object body is not reached, the relevant state information corresponding to the cache object body is acquired, wherein the relevant state information comprises the object identification information http:// test.com/a/body.css, the validity period 11:00 and the like of the cache object body. And determining that the number of requests in the cache object body in 10s is 120 according to the object identification information http:// test.com/a/body.cs, and acquiring the corresponding advanced time length of 10s and the due update rule from the preset configuration rule. According to the advanced time length 10s, the expired update rule and the valid period 11:00, if the time when the current object request is received is within the range of the advanced time length before the valid period of the cache object, for example, 10:59:50 (or 10:59:51), the update time of the cache object body is determined to include 10:59:50 (or 10:59:51) and 11: 00. and determining that the updating condition corresponding to the body of the cache object is that the system time reaches 10:59:50 (or 10:59:51) or 11: and updating the cache object a when 00. In the embodiment of the application, only the first one of the received object requests is updated in each update time interval.
In this embodiment of the application, for any one or more of the object state information, the client state information, and the system state information of the cache server included in the relevant state information, which is similar to the object type and the requested times, a corresponding advance update rule may be configured in a preset configuration rule. And the cache server matches the advance updating rules which are mostly met by the cache object from the preset configuration rules according to the relevant state information, so as to determine the updating conditions corresponding to the cache object.
As an example, the update condition of the cache object is determined for the system state information of the cache server included according to the relevant state information. For example, the system state information of the cache server includes a system load level, and the cache server may obtain a current load value of the system in real time through the monitoring system, and determine whether the load value within a certain time period closest to the current time is lower than a preset value, where the certain time period may be 10 minutes or 15 minutes, and the preset value may be 10 or 15, and the like. If the load value within a certain time length is judged to be lower than the preset value, the advanced updating is started, the updating and checking frequency is increased, and the updating time delay of the cache object is reduced. If the load value within a certain time length is configured to be lower than the advance time length corresponding to the preset value in the preset configuration rule, the cache object is updated at the time of the advance time length before the validity period of the cache object reaches. And shortening the updating and checking frequency, namely shortening the certain time length, for example, judging whether the load value within 15 minutes nearest to the current time is lower than a preset value before, and judging whether the load value within shorter time lengths such as 10 minutes or 8 minutes nearest to the current time is lower than the preset value after the updating and checking frequency is shortened.
For the streaming media cache objects with object types of mp4 and TS (Transport Stream), the scheme of determining the update condition according to the load value may not be adopted, and the scheme of determining the update condition according to the object type, the requested times, and the like and updating in advance is maintained, which is beneficial to smooth playing of real-time streaming media.
In other embodiments of the present application, the update condition may also be determined in combination with a load value of the system and a preset time period. For example, assuming that the preset time period is between 8:00 and 23:00, according to the load value, if the load value is lower than 10 in the last 15 minutes, the cache objects with the data volume larger than 10M are kept updated and checked 5 minutes earlier, and at least one check per minute is kept when requested, so that the update delay of the larger cache objects and the quality of the service at the moment of expiration are reduced. If the load value is lower than 30 in the last 15 minutes, the cache objects with the data volume larger than 100M are kept updated and checked 5 minutes earlier, and the last minute is checked once when the cache objects are requested, so that the updating delay of the larger cache objects and the quality of the service at the moment of expiration are reduced. If the load value is more than or equal to 30 in the last 15 minutes, only the cache objects of mp4, TS or other real-time streaming media formats are updated in advance, and only necessary cache objects are updated in advance as far as possible, so that the system pressure is reduced. And only updating and checking the cache object in the real-time streaming media format in advance between 23:00 and 8:00 of the second day, so that the system pressure is reduced, and more resources are reserved for other tasks.
In some embodiments of the present application, for the geographic location information included in the system state information of the cache server, the update condition of the cache object may be determined according to the geographic location information. Specifically, whether the location of the cache server is located in the remote area can be determined according to the geographical location information, for the cache server in the remote area, a full-scale advanced update check is started, and an advanced time length corresponding to the geographical location information of the remote area can be set in a preset configuration rule, that is, all cache objects stored by the cache server in the remote area are updated in advance of the advanced time length corresponding to the geographical location information of the cache objects. Therefore, the problem of delay in updating the cache object caused by poor network environment in remote areas can be solved, and the problem of poor service quality of the first request after the cache object is expired can be avoided.
In some embodiments of the present application, for the network environment state included in the system state information of the cache server, the update condition of the cache object may also be determined according to the network environment state. And particularly, when the network quality of the upstream node is better, the advanced updating is reduced, and the system load is reduced. When the network quality is poor, in order to optimize the user experience, a wider range of advanced updating is started, the advanced updating duration is prolonged, and the updating verification frequency is increased.
After the updating condition of the cache object requested by the client is determined through any one of the above manners, whether the current cache object meets the updating condition is judged. That is, it is determined whether the current system time reaches the update time included in the update condition. If so, it is determined that the cache object needs to be updated in advance, and then the operation of step 104 is performed. If not, determining that the cache object does not need to be updated in advance, and directly sending the currently stored cache object to the client.
Step 104: updating the cache object in advance, and responding to the object acquisition request.
If the updating condition of the cache object is determined to be currently met in step 103, acquiring a latest version object corresponding to the cache object from the source server, and replacing the locally stored cache object with the latest version object; and sending the latest version object to the client. That is, as shown in a of fig. 3, the cache server sends an object update request to the origin server, where the object update request includes the object identification information of the cache object. And receiving a latest version object corresponding to the object identification information returned by the source server, replacing the locally stored cache object with the latest version object, and sending the latest version object to the client. Therefore, the client can be ensured to obtain the latest version object, and the accuracy of object acquisition is improved.
In other embodiments of the present application, the cache object may be sent locally to the client. And meanwhile, acquiring the latest version object corresponding to the cache object from the source server through a local background, and replacing the locally stored cache object with the latest version object. That is, as shown in b of fig. 3, the cache server sends the cached object to the client, and simultaneously sends an object update request to the origin server in the background, where the object update request includes the object identification information of the cached object. And receiving the latest version object corresponding to the object identification information returned by the source server, and replacing the locally stored cache object with the latest version object. Therefore, the client can be responded as soon as possible, and the waiting time of the user is shortened.
In this embodiment of the present application, when the source server responds to an object update request of the cache server, if the latest version object exists, the source server may send the latest version object and a first status code to the cache server, where the first status code is used to indicate that the source server returns a complete latest version object. For example, the first status code may be the HTTP status code 200. The source server may further compare the latest version object with the cache object, obtain a part of object content of the latest version object, which is different from the cache object, and send the obtained part of object content and a second state code to the cache server, where the second state code is used to indicate that the source server returns the updated part of object content, and for example, the second state code may be the HTTP state code 206. After receiving the part of the object content, the cache server generates the latest version object according to the part of the object content and the cache object. If the latest version object does not exist in the source server, the source server may send a third status code to the cache server, where the third status code is used to indicate that the object in the source server is not updated. For example, the third status code may be the HTTP status code 304.
In some embodiments of the present application, when the cache server requests to update the cache object in advance, the cache object in the origin server may not be updated yet, in this case, if the object is also obtained from the origin server and updated, the waste of network resources is caused, and the processing pressure of the origin server is increased. In order to save network resources and reduce the pressure of the origin server, in the process of acquiring the latest version object of the cache object from the origin server, the embodiment of the present application may further generate an object update request corresponding to the cache object, and add the version identifier of the cache object in the object update request. The object update request is then sent to the origin server. And after receiving the object updating request, the source server compares whether the version identification is consistent with the version identification of the latest version object corresponding to the cache object stored in the source server, if so, the source server indicates that the object is not updated in the source server, and then sends an indication message that the object is not changed to the cache server. And after receiving the indication message, the cache server sends the locally stored cache object to the client. And if the source server compares that the two version identifications are inconsistent, the source server indicates that the object is updated in the source server, and the corresponding latest version object is sent to the cache server. The cache server receives a latest version object corresponding to the version identification returned by the source server, sends the latest version object to the client, and replaces the locally stored cache object with the latest version object.
The adding of the version identifier of the cache object in the object update request may specifically be adding the version identifier in a header of the object update request. For example, assuming that the object update request is an HTTP message, a version identifier may be added to an If-Modified-site field or an ETag field in a header of the HTTP message, or other object version information that can be recognized by the source server may be adopted. When the cached object has no known available version identification, the last update time of the cached object can be added in the object update request, so that the origin server determines the version of the cached object through the last update time.
In order to facilitate understanding of the object updating method provided in the present application, the following description is made with reference to the accompanying drawings. As shown in fig. 4, S1: and receiving an object acquisition request sent by a client. S2: and judging whether the cache object corresponding to the object acquisition request is stored, if so, executing the step S3, and if not, executing the step S7. S3: and judging whether the validity period of the cache object reaches, if not, executing the step S4, and if so, executing the step S7. S4: and acquiring the relevant state information corresponding to the cache object. S5: and determining the updating condition corresponding to the cache object according to the relevant state information. S6: and judging whether the cache object meets the updating condition, if so, executing the step S7, and if not, executing the step S8. S7: and acquiring the latest version object corresponding to the cache object from the source server, and sending the latest version object to the client. S8: and sending the cache object to the client.
In step S7, any one of the manners shown in a and b in fig. 3 above may be adopted, and the version identifier of the cached object may be carried in the object obtaining request sent to the origin server.
In the embodiment of the application, before the validity period of the cache object in the cache server is finished, whether the cache object needs to be updated in advance is judged according to the relevant state information corresponding to the cache object, and when the cache object needs to be updated in advance, the cache object can be updated in time, so that the response time delay of the client caused by updating the object after the validity period is finished is avoided. According to the method and the device, a more intelligent mode for judging whether the object is updated or not is provided according to the relevant state information of the cache object, the method and the device can adapt to more and more complex network service environments, one or more combinations of the system state of the cache server, the state of the client requesting the object and the state of the object are integrated, and the adopted object updating strategy is determined by integrating the aspects. The method is beneficial to improving the condition that the cache server provides a more accurate cache object for the client under the conditions of different geographic positions, load levels, network environments, source server states and the like, and the cache object is updated more timely.
The embodiment of the present application further provides a cache object updating apparatus, where the apparatus is configured to execute the cache object updating method provided in any of the above embodiments. Referring to fig. 5, the apparatus includes:
a receiving module 501, configured to receive an object obtaining request sent by a client, and determine that a cache object corresponding to the object obtaining request exists and an expiration date does not reach;
an obtaining module 502, configured to obtain relevant state information corresponding to a cache object;
a judging module 503, configured to judge whether to update the cache object in advance according to the relevant state information;
an updating module 504, configured to update the cache object in advance if the determining module determines that the cache object needs to be updated in advance, and respond to the object obtaining request.
The determining module 503 is configured to determine an update condition corresponding to the cache object according to a preset configuration rule and the relevant state information; judging whether the current cache object meets the updating condition; if yes, determining that the cache object needs to be updated in advance; if not, it is determined that the cached object does not need to be updated in advance.
In the embodiment of the present application, the relevant state information includes one or more combinations of object state information corresponding to the cache object, client state information corresponding to the client, and system state information corresponding to the cache server; the judging module 503 is configured to determine, according to the relevant state information, an advance update rule that the cache object conforms to from a preset configuration rule, where the advance update rule includes an advance duration for updating the cache object in advance; and generating an updating condition corresponding to the cache object according to the updating rule in advance and the validity period of the cache object.
The update conditions include: the time when the object acquisition request corresponding to the cache object is received in the range of the advance time length before the valid period of the cache object, and/or the advance updating time determined according to the valid period of the cache object and the advance time length included in the advance updating rule.
The determining module 503 is configured to determine, according to the object type of the cache object included in the relevant state information, an advance time corresponding to the object type from a preset configuration rule.
A determining module 503, configured to obtain a periodic update rule from a preset configuration rule if the advance time length is greater than a preset threshold, where the periodic update rule is used to specify that the update is performed every preset unit time length; and determining the advance time length and the periodic updating rule as the advance updating rule which is accorded with the cache object.
The determining module 503 is configured to determine, according to the object identification information of the cache object included in the relevant state information, the requested times of the cache object within a preset time length closest to the current time; if the requested times are greater than the preset times, acquiring an advance time length corresponding to the preset times and an expiration updating rule from the preset configuration rule, wherein the expiration updating rule is used for stipulating updating when the validity period of the object is ended; and determining the advance time length and the expiration updating rule as the advance updating rule which is met by the cache object.
An update module 504, configured to obtain a latest version object corresponding to the cache object from the source server, and replace the locally stored cache object with the latest version object; sending the latest version object to the client; or, sending the cache object to the client; and meanwhile, the latest version object corresponding to the cache object is acquired from the source server through the local background, and the locally stored cache object is replaced by the latest version object.
An update module 504, configured to generate an object update request corresponding to the cache object; adding a version identifier of a cache object in an object updating request; sending an object update request to an origin server; and receiving the state code and/or the latest version object corresponding to the version identification returned by the source server.
The updating module 504 is further configured to update the cached object again when the validity period of the cached object is over.
The updating module 504 is further configured to receive a third status code sent by the source server if the latest version object corresponding to the cache object does not exist in the source server, where the third status code is used to indicate that the cache object in the source server is not updated yet.
The cache object updating device provided by the above embodiment of the present application and the cache object updating method provided by the embodiment of the present application have the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by the application program stored in the cache object updating device.
The embodiment of the application also provides electronic equipment for executing the cache object updating method. Please refer to fig. 6, which illustrates a schematic diagram of an electronic device according to some embodiments of the present application. As shown in fig. 6, the electronic apparatus 6 includes: the system comprises a processor 600, a memory 601, a bus 602 and a communication interface 603, wherein the processor 600, the communication interface 603 and the memory 601 are connected through the bus 602; the memory 601 stores a computer program that can be executed on the processor 600, and when the processor 600 executes the computer program, the cache object updating method provided by any of the foregoing embodiments of the present application is executed.
The Memory 601 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 603 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 602 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 601 is configured to store a program, and the processor 600 executes the program after receiving an execution instruction, where the cache object updating method disclosed in any embodiment of the present application may be applied to the processor 600, or implemented by the processor 600.
Processor 600 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 600. The Processor 600 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 601, and the processor 600 reads the information in the memory 601 and performs the steps of the above method in combination with the hardware thereof.
The electronic device provided by the embodiment of the application and the cache object updating method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Referring to fig. 7, the computer readable storage medium is an optical disc 30, and a computer program (i.e., a program product) is stored thereon, and when being executed by a processor, the computer program may execute the cache object updating method according to any of the foregoing embodiments.
It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
The computer-readable storage medium provided by the above-mentioned embodiment of the present application and the cache object updating method provided by the embodiment of the present application have the same beneficial effects as the method adopted, run or implemented by the application program stored in the computer-readable storage medium.
It should be noted that:
in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the application and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted to reflect the following schematic: this application is intended to cover such departures from the present disclosure as come within known or customary practice in the art to which this invention pertains. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A cache object updating method is applied to a cache server and comprises the following steps:
receiving an object acquisition request sent by a client, and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach;
acquiring relevant state information corresponding to the cache object;
judging whether to update the cache object in advance according to the relevant state information;
if yes, updating the cache object in advance, and responding to the object acquisition request.
2. The method according to claim 1, wherein said determining whether to update the cache object in advance according to the relevant state information comprises:
determining an updating condition corresponding to the cache object according to a preset configuration rule and the relevant state information;
judging whether the current cache object meets the updating condition;
if yes, determining that the cache object needs to be updated in advance;
if not, determining that the cache object does not need to be updated in advance.
3. The method of claim 1, wherein the relevant state information comprises one or more of a combination of object state information corresponding to the cache object, client state information corresponding to the client, and system state information corresponding to a cache server;
the determining, according to a preset configuration rule and the relevant state information, an update condition corresponding to the cache object includes:
determining an advance updating rule which is accorded with the cache object from a preset configuration rule according to the relevant state information, wherein the advance updating rule comprises an advance time length for updating the cache object in advance;
and generating an updating condition corresponding to the cache object according to the updating rule in advance and the validity period of the cache object.
4. The method of claim 3, wherein the update condition comprises: and the time when the object acquisition request corresponding to the cache object is received is within the range of the advance time length before the effective period of the cache object, and/or the advance updating time determined according to the effective period of the cache object and the advance time length included in the advance updating rule.
5. The method according to claim 3 or 4, wherein the determining, according to the relevant state information, an update-ahead rule to which the cache object conforms from a preset configuration rule includes:
and determining an advance time corresponding to the object type from a preset configuration rule according to the object type of the cache object included in the relevant state information.
6. The method of claim 3 or 4, further comprising:
if the advanced time length is greater than a preset threshold value, acquiring a periodic updating rule from the preset configuration rule, wherein the periodic updating rule is used for stipulating updating once every preset unit time length;
and determining the advance time length and the periodic updating rule as the advance updating rule which is accorded with the cache object.
7. The method according to claim 3 or 4, wherein the determining, according to the relevant state information, an update-ahead rule to which the cache object conforms from a preset configuration rule includes:
determining the requested times of the cache object within a preset time length nearest to the current time according to the object identification information of the cache object, which is included in the relevant state information;
if the requested times are greater than preset times, acquiring an advance time length corresponding to the preset times and an expiration updating rule from a preset configuration rule, wherein the expiration updating rule is used for stipulating updating when the valid period of the object is ended;
and determining the advance time length and the expiration updating rule as the advance updating rule which is met by the cache object.
8. The method of claim 1, wherein updating the cached object and responding to the object fetch request comprises:
obtaining a latest version object corresponding to the cache object from a source server, and replacing the locally stored cache object with the latest version object; sending the latest version object to the client; alternatively, the first and second electrodes may be,
sending the cache object to the client; and meanwhile, acquiring a latest version object corresponding to the cache object from a source server through a local background, and replacing the locally stored cache object with the latest version object.
9. The method of claim 8, wherein obtaining a latest version object corresponding to the cached object from an origin server comprises:
generating an object updating request corresponding to the cache object;
adding the version identification of the cache object in the object updating request;
sending the object updating request to an origin server;
and receiving the latest version object corresponding to the version identification returned by the source server.
10. The method according to any one of claims 1-8, further comprising:
and updating the cache object again when the valid period of the cache object is over.
11. The method of any of claims 1-9, wherein updating the cached object comprises:
and if the latest version object corresponding to the cache object does not exist in the source server, receiving a third status code sent by the source server, wherein the third status code is used for indicating that the cache object in the source server is not updated.
12. A cache object update apparatus, comprising:
the receiving module is used for receiving an object acquisition request sent by a client and determining that a cache object corresponding to the object acquisition request exists and the validity period does not reach;
the acquisition module is used for acquiring the relevant state information corresponding to the cache object;
the judging module is used for judging whether to update the cache object in advance according to the relevant state information;
and the updating module is used for updating the cache object in advance and responding to the object acquisition request if the judging module judges that the cache object needs to be updated in advance.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method of any one of claims 1-11.
14. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement the method according to any of claims 1-11.
CN202110340680.1A 2021-03-30 2021-03-30 Cache object updating method, device, equipment and storage medium Active CN113515530B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110340680.1A CN113515530B (en) 2021-03-30 2021-03-30 Cache object updating method, device, equipment and storage medium
PCT/CN2022/082248 WO2022206487A1 (en) 2021-03-30 2022-03-22 Cache object updating method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110340680.1A CN113515530B (en) 2021-03-30 2021-03-30 Cache object updating method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113515530A true CN113515530A (en) 2021-10-19
CN113515530B CN113515530B (en) 2023-06-13

Family

ID=78062100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110340680.1A Active CN113515530B (en) 2021-03-30 2021-03-30 Cache object updating method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113515530B (en)
WO (1) WO2022206487A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531489A (en) * 2022-01-14 2022-05-24 北京字节跳动网络技术有限公司 Request response method and device
CN115080625A (en) * 2022-07-21 2022-09-20 成都薯片科技有限公司 Caching method, device and equipment based on Spring Cache framework and storage medium
WO2022206487A1 (en) * 2021-03-30 2022-10-06 贵州白山云科技股份有限公司 Cache object updating method and apparatus, device, and storage medium
CN115550424A (en) * 2022-12-02 2022-12-30 苏州万店掌网络科技有限公司 Data caching method, device, equipment and storage medium
CN116701800A (en) * 2023-08-07 2023-09-05 广州市千钧网络科技有限公司 Page content processing method, device, computer equipment and medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378920B (en) * 2022-10-26 2023-04-14 南京大鱼半导体有限公司 Method and equipment for adjusting audio time delay

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760813B1 (en) * 2001-12-20 2004-07-06 Cisco Technology, Inc. Devices, softwares and methods for preemptively updating expiring entries in a cache memory to anticipate future inquiries
CN102984286A (en) * 2012-11-14 2013-03-20 上海牙木通讯技术有限公司 Method and device and system of domain name server (DNS) for buffering updating
CN106815287A (en) * 2016-12-06 2017-06-09 中国银联股份有限公司 A kind of buffer memory management method and device
CN107066570A (en) * 2017-04-07 2017-08-18 聚好看科技股份有限公司 Data managing method and device
CN107291756A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 The method and device of data buffer storage
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109828749A (en) * 2018-12-29 2019-05-31 北京航天云路有限公司 Take into account the data cache method and system that quick response and data update
CN110069267A (en) * 2019-03-15 2019-07-30 平安普惠企业管理有限公司 Data-updating method, device, computer equipment and storage medium
CN110766464A (en) * 2019-10-23 2020-02-07 上海连尚网络科技有限公司 Method and equipment for controlling presence information
CN110913239A (en) * 2019-11-12 2020-03-24 西安交通大学 Video cache updating method for refined mobile edge calculation
CN111125128A (en) * 2019-12-10 2020-05-08 苏宁云计算有限公司 Cache updating method, device and system
CN111259034A (en) * 2020-02-17 2020-06-09 腾讯科技(深圳)有限公司 Cache data management method and related device
CN111563216A (en) * 2020-07-16 2020-08-21 平安国际智慧城市科技股份有限公司 Local data caching method and device and related equipment
CN112445986A (en) * 2019-08-30 2021-03-05 贵州白山云科技股份有限公司 Cache information updating method, cache information pushing method, cache information updating device, cache information pushing device and cache information pushing medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401950A (en) * 2013-08-21 2013-11-20 网宿科技股份有限公司 Cache asynchronism refreshment method, as well as method and system for processing requests by cache server
CN106599721A (en) * 2016-12-13 2017-04-26 微梦创科网络科技(中国)有限公司 Cache-based data access method and apparatus
CN111131856B (en) * 2019-12-31 2022-03-11 北京奇艺世纪科技有限公司 Cache expiration time adjusting method and device, electronic equipment and storage medium
CN113515530B (en) * 2021-03-30 2023-06-13 贵州白山云科技股份有限公司 Cache object updating method, device, equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760813B1 (en) * 2001-12-20 2004-07-06 Cisco Technology, Inc. Devices, softwares and methods for preemptively updating expiring entries in a cache memory to anticipate future inquiries
CN102984286A (en) * 2012-11-14 2013-03-20 上海牙木通讯技术有限公司 Method and device and system of domain name server (DNS) for buffering updating
CN107291756A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 The method and device of data buffer storage
CN106815287A (en) * 2016-12-06 2017-06-09 中国银联股份有限公司 A kind of buffer memory management method and device
CN107066570A (en) * 2017-04-07 2017-08-18 聚好看科技股份有限公司 Data managing method and device
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN109828749A (en) * 2018-12-29 2019-05-31 北京航天云路有限公司 Take into account the data cache method and system that quick response and data update
CN110069267A (en) * 2019-03-15 2019-07-30 平安普惠企业管理有限公司 Data-updating method, device, computer equipment and storage medium
CN112445986A (en) * 2019-08-30 2021-03-05 贵州白山云科技股份有限公司 Cache information updating method, cache information pushing method, cache information updating device, cache information pushing device and cache information pushing medium
CN110766464A (en) * 2019-10-23 2020-02-07 上海连尚网络科技有限公司 Method and equipment for controlling presence information
CN110913239A (en) * 2019-11-12 2020-03-24 西安交通大学 Video cache updating method for refined mobile edge calculation
CN111125128A (en) * 2019-12-10 2020-05-08 苏宁云计算有限公司 Cache updating method, device and system
CN111259034A (en) * 2020-02-17 2020-06-09 腾讯科技(深圳)有限公司 Cache data management method and related device
CN111563216A (en) * 2020-07-16 2020-08-21 平安国际智慧城市科技股份有限公司 Local data caching method and device and related equipment

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
YUANZHI KAN等: "A Cache Invalidation Strategy Based on Publish/Subscribe for Named Data Networking", 《IEEE ACCESS》 *
YUANZHI KAN等: "A Cache Invalidation Strategy Based on Publish/Subscribe for Named Data Networking", 《IEEE ACCESS》, vol. 8, 28 April 2020 (2020-04-28), pages 2169 - 3536 *
段鹏: "面向异构网的边缘协作缓存机制研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
段鹏: "面向异构网的边缘协作缓存机制研究", 《中国优秀硕士学位论文全文数据库信息科技辑》, no. 01, 15 January 2021 (2021-01-15), pages 136 - 459 *
王成等: "Web前端性能优化方案与实践", 《计算机应用与软件》 *
王成等: "Web前端性能优化方案与实践", 《计算机应用与软件》, vol. 31, no. 12, 15 December 2014 (2014-12-15), pages 89 - 95 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022206487A1 (en) * 2021-03-30 2022-10-06 贵州白山云科技股份有限公司 Cache object updating method and apparatus, device, and storage medium
CN114531489A (en) * 2022-01-14 2022-05-24 北京字节跳动网络技术有限公司 Request response method and device
CN115080625A (en) * 2022-07-21 2022-09-20 成都薯片科技有限公司 Caching method, device and equipment based on Spring Cache framework and storage medium
CN115550424A (en) * 2022-12-02 2022-12-30 苏州万店掌网络科技有限公司 Data caching method, device, equipment and storage medium
CN115550424B (en) * 2022-12-02 2023-03-14 苏州万店掌网络科技有限公司 Data caching method, device, equipment and storage medium
CN116701800A (en) * 2023-08-07 2023-09-05 广州市千钧网络科技有限公司 Page content processing method, device, computer equipment and medium

Also Published As

Publication number Publication date
CN113515530B (en) 2023-06-13
WO2022206487A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113515530B (en) Cache object updating method, device, equipment and storage medium
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
CN106534243B (en) Caching, requesting and responding method based on HTTP protocol and corresponding device
KR101560185B1 (en) Method for controlling device using URL in distributed network environment and apparatus thereof
EP3022708B1 (en) Content source discovery
CN111385316B (en) Resource refreshing method, access method and device
JP2019506696A (en) Resource acquisition method and related apparatus
CN111782692B (en) Frequency control method and device
JP2019506764A (en) System and method for obtaining, processing and updating global information
US11032394B1 (en) Caching techniques
CN109089174B (en) Multimedia data stream processing method and device and computer storage medium
CN106899689B (en) Information pre-issuing method and server
CN102196506A (en) Network resource access control method, system and device
CN113329051A (en) Data acquisition method and device and readable storage medium
CN103118049A (en) Method and system downloading files through network caching
CN111193942B (en) Streaming media playback method and device
CN111753233B (en) Third-party H5 page loading method and device and computer readable storage medium
CN113133027B (en) Communication method, server, terminal and communication system
CN112235271A (en) Content Delivery Network (CDN) equipment and self-adaptive safe source returning method thereof
CN115134618B (en) Live stream life cycle information processing method and device and computing equipment
CN114979025B (en) Resource refreshing method, device, equipment and readable storage medium
CN112069258B (en) Transaction progress management method and device and distributed database
CN111753232B (en) Method and device for loading third-party H5 page and computer readable storage medium
CN112732757B (en) Method, system, device, equipment and storage medium for processing degraded data
CN115714763A (en) Data storage method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40058155

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant