CN113515530B - 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
CN113515530B
CN113515530B CN202110340680.1A CN202110340680A CN113515530B CN 113515530 B CN113515530 B CN 113515530B CN 202110340680 A CN202110340680 A CN 202110340680A CN 113515530 B CN113515530 B CN 113515530B
Authority
CN
China
Prior art keywords
cache
updating
cache object
rule
advanced
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110340680.1A
Other languages
Chinese (zh)
Other versions
CN113515530A (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 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 arrive; acquiring relevant state information of a cache object; judging whether to update the cache object in advance according to the related state information; if yes, updating the cache object in advance, and responding to the object acquisition request. Before the cache object is invalid, whether the cache object needs to be updated in advance is judged according to the related state information of the object, and the problem that the response time delay to the client is too long due to the fact that the cache object is updated again after the object is invalid is avoided. The method provides a more intelligent mode for judging whether to update, can adapt to more and more complex network service environments, and comprehensively caches one or more of the state of the server, the state of the client and the state of the object to determine the adopted object updating strategy. The method can provide more accurate cache objects for the client, and update of the cache objects is more timely.

Description

Cache object updating method, device, equipment and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a cache object updating method, device, equipment and storage medium.
Background
At present, a cache server is arranged in many network communication scenes, a source station caches objects in the cache server, and object query service is provided for users through the cached objects. The object of the source station is updated continuously, and accordingly, the object cached in the cache server is 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 respond with the cached object during the validity period. After the validity period is over, when the cache server receives the request of the client for the object again, the cache server returns to the source station to acquire the object again, and the cache server sends an object update request to the source station and redetermines the validity period of the object. 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. The caching server replaces the object which is cached currently 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 expiration date of the object is ended, and if the source station updates the object in advance before the expiration date of the object is ended, the client side can acquire the expired content; otherwise, if the object is updated again after the validity period is over, the client needs to wait for the edge server to get the updated object, which leads to a longer response delay for the client.
Disclosure of Invention
The method, the device, the equipment and the storage medium for updating the cache object are provided, 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, the delay of response to the client caused by updating after the validity period of the object is avoided, more accurate cache objects can be provided for the client, the update of the cache object is more timely, a more intelligent mode for judging whether the cache object is updated is provided, and the method and the device can adapt to more and more complex network service environments.
An embodiment of a first aspect of the present application provides a method for updating a cache object, 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 arrive;
Acquiring relevant state information corresponding to the cache object;
judging whether to update the cache object in advance according to the related state information;
if so, 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 status information includes:
determining an updating condition corresponding to the cache object according to a preset configuration rule and the related state information;
judging whether the current cache object meets the updating condition or not;
if yes, determining that the cache object needs to be updated in advance;
if not, it is determined 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 combinations 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 related state information, an update condition corresponding to the cache object includes:
according to the related state information, determining an advanced updating rule which is met by the cache object from a preset configuration rule, wherein the advanced updating rule comprises an advanced time length for updating the cache object in advance;
And generating an updating condition corresponding to the cache object according to the advanced updating rule and the validity period of the cache object.
In some embodiments of the present application, the update condition includes: and receiving the time of receiving the object acquisition request corresponding to the cache object within the range of the advance time before the validity period of the cache object, and/or determining the advance update time according to the validity period of the cache object and the advance time included in the advance update rule.
In some embodiments of the present application, the determining, according to the relevant status information, an advanced update rule that is met by the cache object from preset configuration rules includes:
and determining the advanced time length 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 time length in advance is greater than a preset threshold value, a periodic updating rule is obtained from the preset configuration rule, wherein the periodic updating rule is used for prescribing updating once every preset unit time length;
and determining the advanced time length and the periodic updating rule as the advanced updating rule which is met by the cache object.
In some embodiments of the present application, the determining, according to the relevant status information, an advanced update rule that is met by the cache object from preset configuration rules includes:
according to the object identification information of the cache object included in the relevant state information, determining the requested times of the cache object in a preset time length nearest to the current time;
if the requested times are greater than the preset times, acquiring an advanced 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 updating when the validity period of the object is ended;
and determining the advanced time length and the expiration updating rule as the advanced updating rule which is met by the cache object.
In some embodiments of the present application, the updating the cached object and responding to the object acquisition request includes:
obtaining the latest version object corresponding to the cache object from the source server, and replacing the locally stored cache object with the latest version object; sending the latest version object to the client; or alternatively, the process may be performed,
sending the cache object to the client; and simultaneously, acquiring the latest version object corresponding to the cache object from the source server through the local background, and replacing the locally stored cache object with the latest version object.
In some embodiments of the present application, the obtaining, from the source server, the latest version object corresponding to the cached object includes:
generating an object update request corresponding to the cache object;
adding the version identification of the cache object in the object update request;
sending the object update request to a source server;
and receiving the latest version object corresponding to the version identifier returned by the source server.
In some embodiments of the present application, further comprising: and updating the cache object again at the end of the validity period of the cache object.
In some embodiments of the present application, the updating the cache object includes:
and if the latest version of the 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 yet.
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 the client and determining that a cache object corresponding to the object acquisition request exists and the validity period does not arrive;
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 related 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.
An embodiment of a third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to implement the method of the first aspect.
An embodiment of the fourth aspect of the present application provides a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the method of the first aspect.
The technical scheme provided in the embodiment of the application has at least 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 ended, 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 delay to a client caused by updating the object after the validity period is ended is avoided, more accurate cache object is provided for the client, and the update of the cache object is more timely. According to the relevant state information of the cache object, a more intelligent mode for judging whether to update the object is provided, and the method can adapt to more and more complex network service environments.
Additional aspects and advantages of the 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 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 designate like parts throughout the figures.
In the drawings:
FIG. 1 is a flowchart of a method for updating a cache object according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a network architecture on which a method for updating a cache object according to an embodiment of the present application is based;
FIG. 3 is a flow chart of obtaining an object of the latest version from an origin server according to an embodiment of the present application;
FIG. 4 is another flow chart of a method for updating a cache object according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of 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 disclosure;
Fig. 7 shows 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 noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
The following describes a method, an apparatus, a device, and a storage medium for updating a cache object according to embodiments of the present application with reference to the accompanying drawings.
The embodiment of the application provides a cache object updating method, which is used for judging whether the cache object needs to be updated in advance according to relevant state information corresponding to the cache object before the validity period of the cache object in a cache server is ended, and when the cache object needs to be updated in advance, the cache object can be updated in time, so that the response delay to a client is long due to the fact that the cache object is updated again after the validity period is ended. In addition, the embodiment of the application provides a more intelligent mode 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 of the system state of the cache server, the state of the client side requesting the object and the state of the object, and determines the adopted strategy for updating the object by integrating the aspects. The method is beneficial to improving the cache object providing more accurate cache objects for clients under the conditions of different geographic positions, load levels, network environments, source server states and the like, and updating the cache objects more timely.
In the embodiment of the present application, the object may be a 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 with a cache function.
Referring to fig. 1, the method specifically includes the steps of:
step 101: and receiving an object acquisition request sent by the client, and determining that a cache object corresponding to the object acquisition request exists and the validity period does not arrive.
The implementation main body of the embodiment of the application is a cache server, a network architecture of the cache server 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 of an object provider, such as a server of a website owner in an HTTP website. In the network architecture, a cache server obtains an object from an origin server and caches the object, and a client obtains the object from the cache server.
When a user needs to check a certain object, an object acquisition request is sent to a cache server through a client, wherein 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, and the like. The object identification information may be 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, where the protocol information is HTTP protocol.
The cache server stores a large number of cache objects, 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 when the cache object is valid in the validity period. And after the expiration date is exceeded, the cache object is invalid and cannot be used for providing services for the client. After receiving the object acquisition request sent by the client, the cache server analyzes the object identification information from the object acquisition request, queries whether a cache object corresponding to the object identification information exists in the 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 currently 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 if the cache server judges that the validity period corresponding to the cache object is reached although the cache object corresponding to the object identification information is inquired, the cache server indicates that no object capable of responding to the object acquisition request of the client exists in the current cache server, and the cache server directly sends an object update request to the source server, wherein the object update request carries the object identification information. After receiving the object update request, the source server obtains the object with the highest version in all the objects corresponding to the object identification information, and sends the object with the highest version to the cache server. And 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, records the update time of the latest version object and sets a validity period for the latest version object. If the cache server stores the expired cache object corresponding to the object identification information, the corresponding relation between the object identification information and the expired cache object, the validity period corresponding to the expired cache object and other information are deleted.
Step 102: and acquiring 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 and determines that the validity period of the cache object does not arrive, the cache server obtains 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 comprises one or more of last update time, valid state, valid period, object type, object cache requirement indicated by the source server, concurrency condition, last update source server response state, last update attribute change condition, requested times and other various state information. The client state information includes client identification information, protocol information, request parameters, and the like. The system state information corresponding to the cache server comprises the geographic position, the system time, the time zone, the network environment or the current system state of the cache server, and the like, wherein the current system state comprises the load level, the waiting queue length or the state of other related software of the cache server.
Step 103: based on the relevant status information, it is determined whether to update the cache object in advance, and if so, step 104 is performed.
In this embodiment of the present application, a preset configuration rule is set in the cache server, where different state information is specified in the preset configuration rule to correspondingly adopt different advanced update rules, for example, an object with an object type of mp4 may be specified in the preset configuration rule to be updated in advance for 5 minutes, and so on.
After obtaining the relevant status information corresponding to the cache object in step 102, determining the update condition corresponding to the cache object according to the preset configuration rule and the obtained relevant status information. Specifically, according to the acquired related state information, an advanced update rule which is met by the cache object is determined from preset configuration rules, wherein the advanced update rule at least comprises an advanced time length for updating the cache object in advance. And generating the updating condition corresponding to the cache object according to the determined advanced updating rule and the validity period of the cache object.
In one embodiment of the present application, the update condition may be that if the time when the object obtaining request corresponding to the current cache object is received is within a range of an advance duration before the validity period of the cache object, the cache object is updated.
In some embodiments of the present application, since there are large amounts of object data for object types, which are typically provided with a long validity period, these large amounts of data objects may be updated longer in advance. For the object with smaller data volume and short effective period, a short advance time length can be set, and even the update is not performed in advance. The corresponding relation between some object types and the advanced time length is specified in the preset configuration rule. After the cache server acquires 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 length corresponding to the object type is determined from a preset configuration rule.
In order to avoid the change of the cache object in the last advanced time length under the condition that the advanced time length is longer, the preset configuration rule is also set to adopt a periodic update rule in the advanced time length when the advanced time length is larger than a preset threshold value, wherein the periodic update rule is used for prescribing that the cache object is updated once every preset unit time length. Therefore, after determining the advanced time length corresponding to the object type in the above manner, if the advanced time length is greater than the preset threshold, acquiring a periodic update rule from the preset configuration rule, and determining the advanced time length and the periodic update rule as the advanced update rule which is met by the cache object. The preset unit time period may be 1 minute or 1.5 minutes, or the like. The preset threshold may be 2 minutes, 3 minutes, 5 minutes, or the like.
After the advanced updating rule corresponding to the cache object is determined in the above manner, the updating condition corresponding to the cache object is generated according to the determined advanced updating rule and the validity period of the cache object. And determining the advanced updating time according to the validity period of the cache object and the advanced time length included in the advanced updating 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 each determined updating time of the advanced updating time and the periodical updating as the corresponding updating condition of the cache object. And then judging whether the cache object needs to be updated in advance or not by judging whether the current time belongs to the updating time included by the updating condition.
The above-described method of determining the update condition based on the information of the object type, the validity period, and the like of the cache object will be described in a specific example. For example, mp4 type objects are typically used for video on demand, with objects being larger and having a longer lifetime. And configuring the advance time length corresponding to the object type MP4 in a preset configuration rule to be 5 minutes, and setting the advance time length to be more than or equal to 5 minutes, and updating every other minute. When object identification information carried in an object acquisition request sent by a client is http:// test.com/path/a.mp4, a cache object a is stored in a cache server, and after the validity period of the cache object a does not reach, relevant state information corresponding to the cache object a is acquired, wherein the relevant state information comprises an object type mp4, a validity period 11:00 and the like of the cache object a. According to the requested object type mp4, acquiring the advanced time length 5 minutes corresponding to mp4 from a preset configuration rule and determining to update every other minute within 5 minutes. According to the periodic update rule that the time length is 5 minutes in advance and is updated every other minute and the validity period 11:00, the update 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 of receiving the current object request is within the range of the advanced duration before the validity period of the cache object (for example, may be 10:56:10), determining that the update condition corresponding to the cache object a is the current system time (10:56:10), and/or updating the cache object a actively or based on the client request when the system time reaches the update times (10:57, 10:58, 10:59 and 11:00). The update operation is then performed when it is determined that the system time reaches 10:57, 10:58, 10:59, or 11:00.
Optionally, when the cache object a corresponds to a plurality of update times, there are multiple requests in each period of the update time, and only one update needs to be performed after the source is returned.
Unlike mp4 files, m3u8 files are often used for live broadcast, and the files are smaller and have shorter effective time, so that no update rule is set for m3u8 files in preset configuration rules, and update can be performed when failure occurs. Or setting the advance time length corresponding to the file type m3u8 as 0 in a preset configuration rule, and not updating at all until the validity period of the m3u8 file is ended. When the file identification information carried in the file acquisition request sent by the client is http:// test.com/path/b.m3u8, the cache object b is stored in the cache server, and after the validity period of the cache object b does not reach, relevant state information corresponding to the cache object b is acquired, wherein 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, inquiring the corresponding advance time length from a preset configuration rule, and knowing that the advance time length corresponding to m3u8 is 0, or if the advance time length corresponding to m3u8 is not configured in the preset configuration rule, setting an update condition for the cache object b, and then, when the system time reaches 11:00 (including 11:00), actively updating the cache object b or based on the client request.
In other embodiments of the present application, some cache objects in the cache server are requested for a large number of times in a short time, in order to reduce the waiting time of the client for requesting the cache objects, for the cache objects, a short advance duration is configured in a preset configuration rule, and in order to ensure that the objects are synchronized with the source server in the advance duration, the cache objects are set in the preset configuration rule to be updated again at the end of the validity period of the cache objects. Specifically, the cache server records the corresponding relation 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 in a preset time period nearest to the current time. After obtaining the relevant state information corresponding to the cache object, the cache server determines the requested times of the cache object in a preset time period nearest to the current time according to the object identification information of the cache object included in the relevant state information. If the requested times are greater than the preset times, acquiring an advanced 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 updating when the validity period of the object is ended. And determining the advanced time length and the expiration updating rule as the advanced updating rule which is met by the cache object. The preset time period may be 10 seconds or 15 seconds, etc. The preset number of times may be 100 times, 200 times, etc.
After the advanced updating rule corresponding to the cache object is determined in the above manner, the updating condition corresponding to the cache object is generated according to the determined advanced updating rule and the validity period of the cache object. And determining the advanced updating time according to the validity period of the cache object and the advanced time length included in the advanced updating rule. And determining each updating time of the periodic updating according to the advanced updating time, the validity period and the expiration updating rule. And determining the determined advanced updating time and the time when the updating is expired as the updating condition corresponding to the cache object. And then judging whether the current time belongs to the updating time included by the updating conditions or not, and judging whether the cache object needs to be updated or not.
The above-described method of determining the update condition based on the information such as the requested number of times and the validity period of the cache object will be described in a specific example. For example, the preset configuration rule sets an advanced duration corresponding to a cache object requested for more than 100 times within 10 seconds to be 10 seconds, and sets an expiration update rule updated again when the validity period of the cache object ends. 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 server is judged to store the cache object body and the validity period of the cache object body does not reach, acquiring relevant state information corresponding to the cache object body, wherein the relevant state information comprises the object identification information http:// test.com/a/body.css of the cache object body, the validity period of the cache object body is 11:00 and the like. And according to the object identification information http:// test.com/a/body.css, determining that the number of requests in the cached object body in 10s is 120, acquiring the corresponding advanced time length from the preset configuration rule to be 10s and acquiring the expiration updating rule. According to the advanced duration 10s, the expiration update rule, and the validity period 11:00, if the time when the current object request is received is within the range of the advanced duration before the validity period of the cache object, for example, may be 10:59:50 (or 10:59:51), it is determined that the update time of the cache object body includes 10:59:50 (or 10:59:51) and 11:00. the update condition corresponding to the cache object body is determined as the system time reaching 10:59:50 (or 10:59:51) or 11: and updating the cache object a at 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 present application, one or more of object state information, client state information, and system state information of the cache server included in the relevant state information may be similar to the above object type and requested number of times, and for any information included in the relevant state information, a corresponding advanced update rule may be configured in a preset configuration rule. And the cache server matches out the advanced updating rule which is more consistent with the cache object from the preset configuration rule according to the related state information, and further determines the updating condition corresponding to the cache object.
As one 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, the cache server may acquire the current load value of the system in real time through the monitoring system, and determine whether the load value in a certain period of time closest to the current time is lower than a preset value, where the certain period of time may be 10 minutes or 15 minutes, and the preset value may be 10 or 15. If the load value in a certain time period is judged to be lower than the preset value, starting updating in advance, improving the updating verification frequency and reducing the updating time delay of the cache object. If the load value in a certain period of time is lower than the advance period corresponding to the preset value, the cache object is updated at the time of the advance period before the effective period of the cache object arrives. And shortening the frequency of updating verification, namely shortening the certain time length, if the load value in 15 minutes closest to the current time is judged to be lower than the preset value, judging if the load value in shorter time length such as 10 minutes or 8 minutes closest to the current time is lower than the preset value after shortening the frequency of updating verification.
For streaming media buffer objects with the object types of mp4, TS (Transport Stream) and the like, the scheme for determining the update condition according to the load value can be omitted, the scheme for determining the update condition according to the object type, the requested times and the like and updating in advance can be maintained, and smooth playing of real-time streaming media is facilitated.
In other embodiments of the present application, the update condition may also be determined in combination with the 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, if the load value is lower than 10 in the last 15 minutes according to the load value, the cache object with the data quantity larger than 10M is kept to update and check 5 minutes in advance, and at least one check per minute is kept when the request is made, so that the update delay of the larger cache object and the quality of the service at the expiration moment are reduced. If the load value is lower than 30 in the last 15 minutes, the cache object with the data volume larger than 100M is kept to be updated and checked 5 minutes in advance, and the last minute is checked once when the request is kept, so that the update delay of the larger cache object and the quality of service at the expiration moment are reduced. If the load value is more than or equal to 30 in 15 minutes recently, only the buffer memory objects in mp4, TS or other real-time streaming media formats are updated and checked in advance, and only the necessary buffer memory objects are updated in advance as far as possible, so that the system pressure is reduced. And in the range from 23:00 to 8:00 on the second day, only the cache object in the real-time streaming media format is updated and checked in advance, 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 position of the cache server is located in a remote area can be determined according to the geographic position information, and for the cache server in the remote area, a full-quantity advanced update check is started, and the advanced time length corresponding to the geographic position information of the remote area can be set in a preset configuration rule, namely, all cache objects stored in the cache server in the remote area are updated in advance by the advanced time length corresponding to the geographic position information of the cache object. Therefore, the problem of cache object update delay caused by poor network environment in remote areas can be reduced, and the problem of poor service quality of the first request after the cache object is out of date can be avoided.
In some embodiments of the present application, for a 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. Particularly, when the network quality of the upstream node is detected to be good, 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 larger range of advanced updating is started, the duration of the advanced updating is prolonged, and the frequency of updating verification is increased.
After determining the update condition of the cache object requested by the client through any mode, judging whether the current cache object meets the update condition. I.e. it is determined whether the current system time has reached the update time comprised 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 it is determined in step 103 that the update condition of the cached object is currently satisfied, acquiring the latest version object corresponding to the cached object from the source server, and replacing the cached object stored locally with the latest version object; and sending the latest version object to the client. That is, as shown in a diagram of fig. 3, the cache server transmits an object update request to the source server, the object update request including object identification information of the cache object. And receiving the 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 object of the latest version, 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 simultaneously, the latest version object corresponding to the cache object is obtained from the source server through the local background, and the locally stored cache object is replaced by the latest version object. That is, as shown in b of fig. 3, the cache server transmits the cache object to the client, and simultaneously transmits an object update request including object identification information of the cache object to the source server in the background. 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. Thus, 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 there is a latest version object, the latest version object and a first status code may be sent 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 also compare the latest version object with the above-mentioned cached object, obtain a part of the object content in the latest version object that is different from the above-mentioned cached object, and send the obtained part of the object content and a second state code to the cached server, where the second state code is used to indicate that the source server returns the updated part of the object content, and for example, the second state code may be the HTTP state code 206. And after receiving the part of object content, the cache server generates the object of the latest version according to the part of object content and the cache object. If the object of the latest version 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 has not been updated. For example, the third status code may be 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 may not be updated in the source server, in this case, if the object is also obtained from the source server and updated, the network resource is wasted, and the processing pressure of the source server is increased. In order to save network resources and reduce the pressure of the source server, in the process of obtaining the latest version object of the cached object from the source server, the embodiment of the application may also generate an object update request corresponding to the cached object, and add the version identifier of the cached object in the object update request. The object update request is then sent to the origin server. After the source server receives the object updating request, comparing whether the version identifier is consistent with the version identifier of the latest version object corresponding to the cached object stored in the source server, if so, indicating that the object is not updated in the source server, and sending an indication message indicating that the object is not changed to the cached server. And after receiving the indication message, the cache server sends the locally stored cache object to the client. If the source server compares that the two version identifiers are inconsistent, the source server indicates that the object is updated in the source server, and the corresponding object of the latest version is sent to the cache server. The cache server receives the latest version object corresponding to the version identifier 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 above-mentioned adding the version identifier of the cached object in the object update request may specifically add the version identifier in the 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-nonce field or an ETag field in the HTTP header, or other manners such as object version information that can be identified by the source server may be adopted. When the cached object has no known available version identification, a last update time of the cached object may also be added to the object update request, such that the source server determines the version of the cached object from 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 the client. S2: and judging whether a 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 is reached, if not, executing the step S4, and if so, executing the step S7. S4: and acquiring relevant state information corresponding to the cache object. S5: and determining the update 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 cached object from the source server, and sending the latest version object to the client. S8: and sending the cache object to the client.
Any one of the modes shown in fig. 3 a and b may be adopted in step S7, and the version identifier of the cached object may be carried in the object acquisition request sent to the source server.
In the embodiment of the application, before the validity period of the cache object in the cache server is ended, 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 delay to a client is long due to the fact that the object is updated after the validity period is ended. According to the method and the system, a more intelligent mode for judging whether to update the object is provided according to the related state information of the cache object, the method and the system 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 side requesting the object and the state of the object are synthesized, and the adopted object updating strategy is determined by integrating the aspects. The method is beneficial to improving the cache object providing more accurate cache objects for clients under the conditions of different geographic positions, load levels, network environments, source server states and the like, and updating the cache objects more timely.
The embodiment of the application also provides a device for updating the cache object, which is used for executing the method for updating the cache object provided by any embodiment. Referring to fig. 5, the apparatus includes:
a receiving module 501, configured to receive an object acquisition request sent by a client, and determine that a cache object corresponding to the object acquisition request exists and a validity period does not arrive;
an obtaining module 502, configured to obtain relevant status information corresponding to the cache object;
a judging module 503, configured to judge whether to update the cache object in advance according to the relevant status information;
and an updating module 504, configured to update the cache object in advance and respond to the object acquisition request if the judging module judges that the cache object needs to be updated in advance.
A judging module 503, configured to determine an update condition corresponding to the cache object according to a preset configuration rule and related status information; judging whether the current cache object meets the update condition or not; if yes, determining that the cache object needs to be updated in advance; if not, it is determined that the cache object does not need to be updated in advance.
In the embodiment of the application, the relevant state information includes one or more combinations of object state information corresponding to a cache object, client state information corresponding to a client, and system state information corresponding to a cache server; a judging module 503, configured to determine, according to the relevant status information, an advanced update rule that is met by the cache object from preset configuration rules, where the advanced update rule includes an advanced duration of updating the cache object in advance; and generating the update condition corresponding to the cache object according to the advanced update rule and the validity period of the cache object.
The update conditions include: and receiving the time of the object acquisition request corresponding to the cache object within the range of the advance time before the validity period of the cache object, and/or determining the advance update time according to the validity period of the cache object and the advance time included in the advance update rule.
A judging module 503, configured to determine, according to the object type of the cache object included in the relevant status information, an advance duration corresponding to the object type from a preset configuration rule.
A judging module 503, configured to obtain a periodic update rule from a preset configuration rule if the advanced time period is greater than a preset threshold, where the periodic update rule is used to specify that the periodic update is performed once every preset unit time period; and determining the advanced time length and the periodic update rule as the advanced update rule which is met by the cache object.
A judging module 503, configured to determine, according to object identification information of a cache object included in the relevant status information, a requested number of times of the cache object within a preset duration nearest to a current time; if the requested times are greater than the preset times, acquiring an advance duration corresponding to the preset times and an expiration updating rule from a preset configuration rule, wherein the expiration updating rule is used for specifying updating when the validity period of the object is ended; and determining the advanced time length and the expiration updating rule as the advanced updating rule which is met by the cache object.
The updating module 504 is configured to obtain, from the source server, an object of the latest version corresponding to the cached object, and replace the cached object stored locally with the object of the latest version; sending the latest version object to the client; or sending the cache object to the client; and meanwhile, the latest version of the object corresponding to the cache object is obtained from the source server through the local background, and the locally stored cache object is replaced by the latest version of the object.
An update module 504, configured to generate an object update request corresponding to the cached object; adding a version identifier of the cached object in the object update request; sending an object update request to a source server; and receiving the latest version object corresponding to the status code and/or the version identifier returned by the source server.
The updating module 504 is further configured to update the cache object again at the end of the validity period of the cache object.
The updating module 504 is further configured to receive a third status code sent by the source server if the latest version of the object corresponding to the cached object does not exist in the source server, where the third status code is used to indicate that the cached object in the source server has not been updated.
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 beneficial effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
The embodiment of the application also provides electronic equipment for executing the cache object updating method. Referring to fig. 6, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 6, the electronic device 6 includes: a processor 600, a memory 601, a bus 602 and a communication interface 603, the processor 600, the communication interface 603 and the memory 601 being connected by 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 in any of the foregoing embodiments of the present application is executed.
The memory 601 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 603 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 602 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 601 is configured to store a program, the processor 600 executes the program after receiving an execution instruction, and the method for updating a cache object disclosed in any of the foregoing embodiments of the present application may be applied to the processor 600 or implemented by the processor 600.
The processor 600 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in processor 600. The processor 600 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks 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 a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as 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 method described above in combination with its hardware.
The electronic device provided by the embodiment of the application and the cache object updating method provided by the embodiment of the application are the same in inventive concept, and have the same beneficial effects as the method adopted, operated or implemented by the electronic device.
The present embodiment also provides a computer readable storage medium corresponding to the method for updating a cache object provided in the foregoing embodiment, referring to fig. 7, the computer readable storage medium is shown as an optical disc 30, on which a computer program (i.e. a program product) is stored, where the computer program, when executed by a processor, performs the method for updating a cache object provided in 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, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiments of the present application and the method for updating a cache object provided by the embodiments of the present application have the same advantages as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
It should be noted that:
in the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present 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 construed as reflecting the following schematic diagram: i.e., the claimed application requires more features than are expressly recited in each claim. 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 but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the present application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
The foregoing is merely a preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the technical scope of the present application should be covered by 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 (11)

1. A method for updating a cache object, applied to a cache server, comprising:
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 arrive;
acquiring relevant state information corresponding to the cache object;
according to the related state information, determining an advanced updating rule which is met by the cache object from a preset configuration rule, wherein the advanced updating rule comprises an advanced time length for updating the cache object in advance;
Generating an update condition corresponding to the cache object according to the advanced update rule and the validity period of the cache object;
if the current cache object meets the updating condition, updating the cache object in advance and responding to the object acquisition request;
if the time length in advance is greater than a preset threshold value, a periodic updating rule is obtained from the preset configuration rule, wherein the periodic updating rule is used for prescribing updating once every preset unit time length; determining the advanced time length and the periodic updating rule as the advanced updating rule which is met by the cache object;
wherein, according to the related state information, determining, from a preset configuration rule, an advanced update rule that the cache object conforms to, includes:
according to the object identification information of the cache object included in the relevant state information, determining the requested times of the cache object in a preset time length nearest to the current time; if the requested times are greater than the preset times, acquiring an advanced 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 updating when the validity period of the object is ended; and determining the advanced time length and the expiration updating rule as the advanced updating rule which is met by the cache object.
2. The method of claim 1, wherein the relevant state information comprises one or more of object state information corresponding to the cached object, client state information corresponding to the client, and system state information corresponding to a cache server.
3. The method of claim 1, wherein the update condition comprises: and receiving the time of receiving the object acquisition request corresponding to the cache object within the range of the advance time before the validity period of the cache object, and/or determining the advance update time according to the validity period of the cache object and the advance time included in the advance update rule.
4. The method according to claim 1, wherein the determining, according to the relevant status information, an advanced update rule that the cache object conforms to from preset configuration rules includes:
and determining the advanced time length 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.
5. The method of claim 1, wherein the updating the cached object and responding to the object fetch request comprises:
Obtaining the latest version object corresponding to the cache object from the source server, and replacing the locally stored cache object with the latest version object; sending the latest version object to the client; or alternatively, the process may be performed,
sending the cache object to the client; and simultaneously, acquiring the latest version object corresponding to the cache object from the source server through the local background, and replacing the locally stored cache object with the latest version object.
6. The method of claim 5, wherein the obtaining, from the source server, the latest version object corresponding to the cached object comprises:
generating an object update request corresponding to the cache object;
adding the version identification of the cache object in the object update request;
sending the object update request to a source server;
and receiving the latest version object corresponding to the version identifier returned by the source server.
7. The method of any one of claims 1-6, further comprising:
and updating the cache object again at the end of the validity period of the cache object.
8. The method of any of claims 1-6, wherein the updating the cache object comprises:
And if the latest version of the 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 yet.
9. A cache object updating apparatus, comprising:
the receiving module is used for receiving an object acquisition request sent by the client and determining that a cache object corresponding to the object acquisition request exists and the validity period does not arrive;
the acquisition module is used for acquiring the relevant state information corresponding to the cache object;
the judging module is used for determining an advanced updating rule which is met by the cache object from preset configuration rules according to the related state information, wherein the advanced updating rule comprises an advanced time length for updating the cache object in advance; generating an update condition corresponding to the cache object according to the advanced update rule and the validity period of the cache object; judging whether the current cache object meets the updating condition or not;
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 current cache object meets the updating condition;
The judging module is used for acquiring a periodic updating rule from the preset configuration rule if the advanced time length is larger than a preset threshold value, wherein the periodic updating rule is used for prescribing updating once every preset unit time length; determining the advanced time length and the periodic updating rule as the advanced updating rule which is met by the cache object;
the judging module is used for determining the requested times of the cache object in a preset time length nearest to the current time according to the object identification information of the cache object included in the relevant state information; if the requested times are greater than the preset times, acquiring an advanced 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 updating when the validity period of the object is ended; and determining the advanced time length and the expiration updating rule as the advanced updating rule which is met by the cache object.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor runs the computer program to implement the method of any one of claims 1-8.
11. A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to implement the method of any of claims 1-8.
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 CN113515530A (en) 2021-10-19
CN113515530B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515530B (en) * 2021-03-30 2023-06-13 贵州白山云科技股份有限公司 Cache object updating method, device, equipment and storage medium
CN114531489A (en) * 2022-01-14 2022-05-24 北京字节跳动网络技术有限公司 Request response method and device
CN115080625B (en) * 2022-07-21 2022-11-04 成都薯片科技有限公司 Caching method, device and equipment based on Spring Cache framework and storage medium
CN115378920B (en) * 2022-10-26 2023-04-14 南京大鱼半导体有限公司 Method and equipment for adjusting audio time delay
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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (13)

* 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
CN102984286B (en) * 2012-11-14 2015-03-04 上海牙木通讯技术有限公司 Method and device and system of domain name server (DNS) for buffering updating
CN103401950A (en) * 2013-08-21 2013-11-20 网宿科技股份有限公司 Cache asynchronism refreshment method, as well as method and system for processing requests by cache server
CN107291756A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 The method and device of data buffer storage
CN106599721A (en) * 2016-12-13 2017-04-26 微梦创科网络科技(中国)有限公司 Cache-based data access method and apparatus
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
CN111131856B (en) * 2019-12-31 2022-03-11 北京奇艺世纪科技有限公司 Cache expiration time adjusting method and device, electronic equipment and storage medium
CN111259034A (en) * 2020-02-17 2020-06-09 腾讯科技(深圳)有限公司 Cache data management method and related device
CN111563216B (en) * 2020-07-16 2020-11-06 平安国际智慧城市科技股份有限公司 Local data caching method and device and related equipment
CN113515530B (en) * 2021-03-30 2023-06-13 贵州白山云科技股份有限公司 Cache object updating method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN113515530A (en) 2021-10-19
WO2022206487A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113515530B (en) Cache object updating method, device, equipment and storage medium
CN106534243B (en) Caching, requesting and responding method based on HTTP protocol and corresponding device
CN110830564B (en) CDN scheduling method, device, system and computer readable storage medium
KR102223260B1 (en) Resource acquisition method and related device
KR101560185B1 (en) Method for controlling device using URL in distributed network environment and apparatus thereof
CN111385316B (en) Resource refreshing method, access method and device
US20150222725A1 (en) Caching proxy method and apparatus
CN107566477B (en) Method and device for acquiring files in distributed file system cluster
CN111782692B (en) Frequency control method and device
US9400547B2 (en) Processing device and method thereof
CN108366097B (en) Resource access control method and system
CN111193942B (en) Streaming media playback method and device
CN113133027B (en) Communication method, server, terminal and communication system
CN112839070B (en) Data processing method and device and node equipment in CDN (content delivery network)
CN113207007A (en) Live broadcast recording method based on HLS protocol
CN114979025B (en) Resource refreshing method, device, equipment and readable storage medium
CN115134618B (en) Live stream life cycle information processing method and device and computing equipment
CN110555040A (en) Data caching method and device and server
CN114520922B (en) Barrage message processing method and device and barrage system
CN116991333B (en) Distributed data storage method, device, electronic equipment and storage medium
CN115714763A (en) Data storage method and related equipment
CN108810043B (en) Method and device for storing comment information
CN115580532A (en) Gateway caching method, device, equipment and storage medium
CN116938946A (en) Method for responding to acquisition request, electronic device, electronic equipment and medium
CN116974998A (en) Data file updating method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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