Reverse cache control method and system, server, client and business end

Through the reverse cache control method, the comparison of cache relative time and termination time can flexibly manage the business data state of the client cache, solving the problems of resource waste and inflexible cache in the existing technology, and achieving efficient cache management and resources use.

CN111898054BActive Publication Date: 2024-11-22HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010788175.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-07
Publication Date
2024-11-22
Estimated Expiration
2040-08-07

AI Technical Summary

Technical Problem

The existing technology has problems of waste of resources and low cache hit rate in cache control. The cache time settings of http1.0 and http1.1 standards are not flexible enough and cannot be dynamically adjusted according to business needs.

Method used

Through the reverse cache control method, the server receives the client's business request, determines the cache update time based on the cache relative time, and compares it with the cache termination time, judges the status of the service data cached by the client, and returns the standard code to trigger data acquisition or re-request , the relative time of cache issuance on the business side to flexibly control cache.

Benefits of technology

When occupies a small amount of memory, improve the caching effect, flexibility improve the efficiency of cached business data acquisition, and reduce unnecessary resource requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111898054B_ABST
    Figure CN111898054B_ABST
Patent Text Reader

Abstract

The present invention provides a reverse cache control method. When a client sends a service request to a server for the first time, the server obtains service data and cache relative time from the service end corresponding to the service request. The server determines the cache expiration time based on the cache relative time, and returns the cache expiration time together with the service data and cache relative time to the client for cache by the client. When the client sends the service request again subsequently, the service request includes the cache expiration time. The server can determine the cache update time based on the cache relative time, and determine the status of the service data cached by the client by comparing the cache update time and the cache expiration time. When the cache update time is not greater than the cache expiration time and the status of the service data is valid, the server returns a standard code to the client, and the client obtains the cached service data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and more specifically, to a reverse cache control method and system, a server, a client and a business end. Background Art

[0002] With the development of Internet technology, the data displayed by various applications requires different users, and the content seen by each user is different. If data is cached according to user dimensions, a large amount of memory space is required to support it, resulting in a waste of resources and a low cache hit rate.

[0003] At present, the http1.0 standard uses the absolute expiration time of the Expires mechanism to control the cache, but due to the time difference between the server and the client, the cache cannot achieve the expected effect. The http1.1 standard uses the relative expiration time of Cache-Control to control the cache. Although it solves the problem of cache failure caused by inconsistent time at both ends, the cache time is relatively fixed after setting and cannot be changed arbitrarily with the business, which lacks flexibility. Summary of the invention

[0004] In view of this, in order to solve the above problems, the present invention provides a reverse cache control method and system, a server, a client and a business end, and the technical solution is as follows:

[0005] A reverse cache control method, the method is applied to a server, the method comprising:

[0006] Receive a service request sent by a client, the service request including a cache expiration time of service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service end corresponding to the service request;

[0007] Determine a cache update time based on the cache relative time, and determine the state of the service data cached by the client by comparing the cache update time with the cache expiration time;

[0008] If the cache update time is not greater than the cache expiration time and the status of the corresponding service data is valid, a standard code is returned to the client to trigger the client to obtain the cached service data.

[0009] Optionally, the method further includes:

[0010] If the cache update time is greater than the cache expiration time and the status of the corresponding service data is invalid, resend the service request to the service end, and receive new service data and new cache relative time returned by the service end;

[0011] A new cache expiration time is determined based on the new cache relative time, and the new service data, the new cache expiration time and the new cache relative time are simultaneously returned to the client.

[0012] Optionally, determining the cache update time based on the cache relative time includes:

[0013] In the case where the cache expiration time is stored according to the cache relative time, detecting whether the stored cache expiration time exists;

[0014] If it does not exist, the current time is used as the cache update time;

[0015] If it exists, the stored cache expiration time is used as the cache update time.

[0016] A server, comprising:

[0017] A first communication module is used to receive a service request sent by a client, wherein the service request includes a cache expiration time of service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service end corresponding to the service request;

[0018] A first processing module, configured to determine a cache update time based on the cache relative time, and determine a state of the service data cached by the client by comparing the cache update time with the cache expiration time;

[0019] The first communication module is further configured to return a standard code to the client if the cache update time is not greater than the cache expiration time and the status of the corresponding service data is valid, so as to trigger the client to obtain the cached service data.

[0020] A reverse cache control method, the method is applied to a client, the method comprising:

[0021] Generate a service request, wherein the service request includes a cache expiration time of the service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service request;

[0022] Sending the service request to the server, so that the server determines a cache update time based on the cache relative time, and determines the state of the service data cached by the client by comparing the cache update time with the cache expiration time;

[0023] If a standard code returned by the server is received, the cached business data is acquired, wherein the standard code is returned when the state of the business data cached by the client is valid.

[0024] Optionally, sending the service request to the server includes:

[0025] Determining a state of the cached service data based on the cache relative time;

[0026] If the status of the cached service data is invalid, sending the service request to the server.

[0027] A client, comprising:

[0028] A second processing module is used to generate a service request, wherein the service request includes a cache expiration time of the service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service request;

[0029] A second communication module is used to send the service request to the server, so that the server determines the cache update time based on the cache relative time, and determines the state of the service data cached by the client by comparing the cache update time and the cache expiration time; and receives the standard code returned by the server;

[0030] The second processing module is further used to obtain the cached business data, and the standard code is returned when the state of the business data cached by the client is valid.

[0031] A reverse cache control method, the method is applied to a service end, the method comprising:

[0032] Receive a service request sent by a server, where the service request is sent by a client to the server;

[0033] Obtaining business data corresponding to the business request and a cache relative time corresponding to the business data;

[0034] The service data and the cache relative time are returned to the server, where the service data and the cache relative time are the basis or basis for the interaction between the server and the client.

[0035] A service end, the service end comprising:

[0036] A third communication module is used to receive a service request sent by the server, where the service request is sent by the client to the server;

[0037] A third processing module is used to obtain the service data corresponding to the service request and the cache relative time corresponding to the service data;

[0038] The third communication module is further used to return the service data and the cache relative time to the server, where the service data and the cache relative time are the basis or basis for the interaction between the server and the client.

[0039] A reverse cache control system, the system comprising:

[0040] The server, the client, and the business end.

[0041] The present invention provides a reverse cache control method. When a client sends a service request to a server for the first time, the server obtains service data and cache relative time from the service end corresponding to the service request. The server determines the cache relative time based on the cache relative time, and returns the cache relative time together with the service data and cache relative time to the client for cache by the client. When the client sends the service request again subsequently, the service request includes a cache expiration time. The server can determine the cache update time based on the cache relative time, and determine the status of the service data cached by the client by comparing the cache update time and the cache expiration time. When the cache update time is not greater than the cache expiration time and the status of the service data is valid, the server returns a standard code to the client, and the client obtains the cached service data.

[0042] Based on the present invention, combined with the http1.0 standard and the http1.1 standard, the service end sends the cache relative time, the service end performs cache control, and the cache right is handed over to the service itself. In addition, the present application can achieve the cache effect under the premise that each node occupies a small amount of memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0044] Figure 1 A method flow chart of a reverse cache control method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of the structure of a server provided in an embodiment of the present invention;

[0046] Figure 3 Another method flow chart of the reverse cache control method provided by an embodiment of the present invention;

[0047] Figure 4 A schematic diagram of the structure of a client provided by an embodiment of the present invention;

[0048] Figure 5 A flowchart of another method of the reverse cache control method provided by an embodiment of the present invention;

[0049] Figure 6 A schematic diagram of the structure of a service end provided by an embodiment of the present invention;

[0050] Figure 7 A system architecture diagram of a reverse cache control system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0053] The embodiment of the present invention provides a reverse cache control method, which is applied to a server. The method flow chart of the method is as follows: Figure 1 As shown, the following steps are included:

[0054] S101, receiving a service request sent by a client, the service request includes a cache expiration time of service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service end corresponding to the service request.

[0055] In the embodiment of the present invention, when the client initiates a service request for the first time, since there is no cache for the service request, the field where the "cache expiration time" is located in the service request sent to the server is set to "-1". After the server recognizes that the cache expiration time field in the service request is "-1", it can determine that the service request is received for the first time, and thus requests the corresponding service data from the service end corresponding to the service request. The service end returns the service data and the cache relative time corresponding to the service data, that is, the time for which the service data is cached on the client is flexibly controlled by the service end.

[0056] After obtaining the business data and cache relative time returned by the business end, the server can calculate the cache expiration time based on the local time and cache relative time. Assuming that the local time is 12:00 on January 1, 2020 and the cache relative time is 30 minutes, the cache expiration time is 12:30 on January 1, 2020. The business end returns the business data, cache relative time, and cache expiration time to the client, which is cached by the client.

[0057] The client caches the business data, cache relative time, and cache expiration time returned by the business end. When the client subsequently initiates a business request again, it can determine whether the status of the cached business data is valid based on the cache relative time. Specifically, if the duration of the cached business data is less than the cache relative time, it means that the business data status is valid, otherwise it is invalid. If the status of the business data is valid, the cached business data is obtained. Otherwise, a business request is sent to the server again, and the field where the "cache expiration time" is located in the business request is set to the cache expiration time of the cache.

[0058] In addition, in actual applications, users may perform touch operations on the client such as forced refresh, system startup, etc. At this time, even if the status of the cached business data is valid, the client needs to initiate a business request again. Therefore, after receiving such a touch operation, the client can directly send a business request to the server, without having to determine whether the status of the cached business data is valid through the cache relative time.

[0059] S102: determining a cache update time based on the cache relative time, and determining a state of the service data cached by the client by comparing the cache update time with the cache expiration time.

[0060] In the embodiment of the present invention, after returning the service data, cache relative time and cache expiration time to the client, the server can record the cache expiration time according to the cache relative time. Taking the cache expiration time as 12:30 on January 1, 2020 and the cache relative time as 30 minutes as an example, the server starts the timer and stores the cache expiration time 12:30 on January 1, 2020 for 30 minutes. Within 30 minutes, the cache update time is the cache expiration time, and after 30 minutes, the cache update time is the local current time of the server.

[0061] Therefore, if the cache update time is not greater than the cache expiration time, it can be determined that the status of the business data cached by the client is valid. Otherwise, if the cache update time is greater than the cache expiration time, the status of the business data cached by the client is invalid.

[0062] S103: If the cache update time is not greater than the cache expiration time and the status of the corresponding service data is valid, a standard code is returned to the client to trigger the client to obtain the cached service data.

[0063] In the embodiment of the present invention, if the status of the service data cached by the client is valid, the server returns a standard code, namely, a 304 code, to the client. After receiving the 304 code, the client can obtain the cached service data this time.

[0064] Based on this, the server does not need to request business data from the business end and then return it to the client every time the client sends a business request, thereby improving the caching effect.

[0065] In some other embodiments, if the cache update time is greater than the cache expiration time and the status of the corresponding service data is invalid, a service request is resent to the service end, and new service data and a new cache relative time returned by the service end are received;

[0066] The new cache expiration time is determined based on the new cache relative time, and the new business data, the new cache expiration time and the new cache relative time are simultaneously returned to the client.

[0067] In an embodiment of the present invention, the server will replace the above business data and cache relative time with new business data and new cache relative time, and the client will replace the cached cache expiration time, business data and cache relative time with new cache expiration time, new business data and new cache relative time.

[0068] It should be noted that the server obtains new business data and new cache relative time, determines the new cache expiration time based on the new cache relative time, returns the new business data, new cache expiration time and new cache relative time to the client, and the relevant process of the client subsequently initiating a business request can be found in the above description and will not be repeated here.

[0069] The reverse cache control method provided by the embodiment of the present invention enables the server to determine the cache update time based on the cache relative time returned by the service end, and then determine the status of the service data cached by the client by comparing it with the cache expiration time in the service request, and when the status of the service data is valid, return a standard code to the client to trigger the client to obtain the cached service data. Based on the present invention, the service end sends the cache relative time, the server performs cache control, and the cache right is handed over to the service itself, so as to achieve the cache effect under the premise that each node occupies a small amount of memory.

[0070] Based on the reverse cache control method provided in the above embodiment, the embodiment of the present invention provides a server, the structural diagram of which is as follows: Figure 2 As shown, including:

[0071] The first communication module 101 is used to receive a service request sent by a client. The service request includes a cache expiration time of service data corresponding to the service request cached by the client. The service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server. The cache expiration time is determined by the server based on the cache relative time. The service data and the cache relative time are obtained by the server from the service end corresponding to the service request.

[0072] The first processing module 102 is used to determine the cache update time based on the cache relative time, and determine the state of the service data cached by the client by comparing the cache update time and the cache expiration time.

[0073] The first communication module 101 is further configured to return a standard code to the client to trigger the client to obtain the cached service data if the cache update time is not greater than the cache expiration time and the status of the corresponding service data is valid.

[0074] The server provided by the embodiment of the present invention can determine the cache update time based on the cache relative time returned by the service end, and then determine the status of the service data cached by the client by comparing it with the cache expiration time in the service request, and when the status of the service data is valid, return a standard code to the client to trigger the client to obtain the cached service data. Based on the present invention, the service end sends the cache relative time, the server end performs cache control, and the cache right is handed over to the service itself, so as to achieve the cache effect under the premise that each node occupies a small amount of memory.

[0075] The embodiment of the present invention also provides a reverse cache control method, which is applied to a client. The method flow chart of the method is as follows: Figure 3 As shown, the following steps are included:

[0076] S201, generate a business request, the business request includes the cache expiration time of the business data corresponding to the client cache business request, the business data cached by the client, the cache expiration time, and the cache relative time of the business data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the business data and the cache relative time are obtained by the server from the business request.

[0077] In the embodiment of the present invention, if the client initiates a service request for the first time, the field where the "cache expiration time" in the service request is set to "-1". If the client does not initiate a service request for the first time, the "cache expiration time" in the service request is set to the cache expiration time of the cache.

[0078] If the client is not initiating a service request for the first time, and if the touch operation that triggers the service request is not a forced touch operation such as forced refresh or system startup, the client can determine the status of the cached service data based on the cache relative time. Specifically, if the duration of the cached service data is less than the cache relative time, the status of the service data is valid, otherwise it is invalid. If the status of the service data is valid, the cached service data is obtained; if the status of the cached service data is invalid, a service request is sent to the server.

[0079] S202, sending a service request to the server, so that the server determines the cache update time based on the cache relative time, and determines the state of the service data cached by the client by comparing the cache update time and the cache expiration time.

[0080] S203: If a standard code returned by the server is received, the cached business data is obtained. The standard code is returned when the status of the business data cached by the client is valid.

[0081] It should be noted that the specific content of the reverse cache control method of the embodiment of the present invention can be found in the disclosed part of the above reverse cache control method embodiment, which will not be repeated here.

[0082] The reverse cache control method provided by the embodiment of the present invention enables the client to send a service request to the server, and obtain the cached service data when the server returns a standard code based on the service request. Based on the present invention, the service end sends the cache relative time, the server performs cache control, and the cache right is handed over to the service itself, so as to achieve the cache effect under the premise that each node occupies a small amount of memory.

[0083] Based on the reverse cache control method provided in the above embodiment, the embodiment of the present invention provides a client, and the structural diagram of the server is as follows: Figure 4 As shown, including:

[0084] The second processing module 201 is used to generate a business request, which includes the cache expiration time of the business data corresponding to the client cache business request. The business data cached by the client, the cache expiration time, and the cache relative time of the business data are returned by the server. The cache expiration time is determined by the server based on the cache relative time. The business data and the cache relative time are obtained by the server from the business request.

[0085] The second communication module 202 is used to send a service request to the server so that the server determines the cache update time based on the cache relative time, and determines the status of the service data cached by the client by comparing the cache update time and the cache expiration time; and receives the standard code returned by the server.

[0086] The second processing module 201 is further used to obtain the cached business data. The standard code is returned when the state of the business data cached by the client is valid.

[0087] The client provided by the embodiment of the present invention can send a service request to the server, and obtain the cached service data when the server returns a standard code based on the service request. Based on the present invention, the service end sends a cache relative time, the server performs cache control, and the cache right is handed over to the service itself, so as to achieve a cache effect under the premise that each node occupies a small amount of memory.

[0088] The embodiment of the present invention also provides a reverse cache control method, which is applied to a service end. The method flow chart of the method is as follows: Figure 5 As shown, the following steps are included:

[0089] S301, receiving a service request sent by a server, where the service request is sent by a client to a server.

[0090] S302, obtaining business data corresponding to the business request and a cache relative time corresponding to the business data.

[0091] S303, returning the business data and cache relative time to the server, where the business data and cache relative time are the basis or basis for the interaction between the server and the client.

[0092] In the embodiment of the present invention, as long as the service end receives the service request sent by the server end, it obtains the corresponding service data and cache relative time and returns them to the server end. The interaction process between the server end and the client end can be found in the public part of the above reverse cache control method embodiment, which will not be repeated here.

[0093] The reverse cache control method provided by the embodiment of the present invention allows the business end to send down the cache relative time, and the server end to perform cache control, giving the cache right to the business itself, thereby achieving a cache effect under the premise that each node occupies a small amount of memory.

[0094] Based on the reverse cache control method provided in the above embodiment, the embodiment of the present invention provides a service end. The structural diagram of the service end is as follows: Figure 6 As shown, including:

[0095] The third communication module 301 is used to receive a service request sent by the server. The service request is sent by the client to the server.

[0096] The third processing module 302 is used to obtain the service data corresponding to the service request and the cache relative time corresponding to the service data.

[0097] The third communication module 301 is also used to return business data and cache relative time to the server, and the business data and cache relative time are the basis or basis for the interaction between the server and the client.

[0098] The service end provided by the embodiment of the present invention can send down the cache relative time, so that the server can perform cache control and give the cache right to the service itself, thereby achieving the cache effect under the premise that each node occupies a small amount of memory.

[0099] Based on the server, client and business end provided in the above embodiments, the present invention also provides a reverse cache control system, the system architecture diagram of which is shown in FIG. Figure 7 As shown, including:

[0100] A server 10, a client 20, and a business terminal 30, wherein the number of the client 20 and the business terminal 30 is at least one.

[0101] The above is a detailed introduction to a reverse cache control method and system, server, client and business end provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0102] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0103] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device that includes a series of elements is inherent to the elements, or also includes elements inherent to these processes, methods, articles or devices. In the absence of further restrictions, the elements defined by the sentence "including a..." do not exclude the presence of other identical elements in the process, method, article or device that includes the elements.

[0104] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A reverse cache control method, It is characterized in that The method is applied to the server, and the method includes: Receive a service request sent by a client, the service request including a cache expiration time of service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service end corresponding to the service request; Determine a cache update time based on the cache relative time, and determine the state of the service data cached by the client by comparing the cache update time with the cache expiration time; If the cache update time is not greater than the cache expiration time, the status of the service data cached by the corresponding client is valid, and a standard code is returned to the client to trigger the client to obtain the cached service data; The determining the cache update time based on the cache relative time includes: In the case where the cache expiration time is stored according to the cache relative time, detecting whether the stored cache expiration time exists; If it does not exist, the current time is used as the cache update time; If it exists, the stored cache expiration time is used as the cache update time; If the cache update time is greater than the cache expiration time, the status of the service data cached by the corresponding client is invalid, and the service request is resent to the service end, and new service data and new cache relative time returned by the service end are received; A new cache expiration time is determined based on the new cache relative time, and the new service data, the new cache expiration time and the new cache relative time are simultaneously returned to the client.

2. A server, It is characterized in that The server includes: A first communication module is used to receive a service request sent by a client, wherein the service request includes a cache expiration time of service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service end corresponding to the service request; A first processing module is used to determine a cache update time based on the cache relative time, and determine the state of the business data cached by the client by comparing the cache update time and the cache expiration time; the determining of the cache update time based on the cache relative time includes: in the case where the cache expiration time is stored according to the cache relative time, detecting whether the stored cache expiration time exists; if not, using the current time as the cache update time; if exists, using the stored cache expiration time as the cache update time; The first communication module is also used for, if the cache update time is not greater than the cache expiration time, the status of the business data cached by the corresponding client is valid, and a standard code is returned to the client to trigger the client to obtain the cached business data; if the cache update time is greater than the cache expiration time, the status of the business data cached by the corresponding client is invalid, and the business request is re-sent to the business end, and new business data and new cache relative time returned by the business end are received; a new cache expiration time is determined based on the new cache relative time, and the new business data, the new cache expiration time and the new cache relative time are returned to the client at the same time.

3. A reverse cache control method, It is characterized in that The method is applied to a client, and the method comprises: Generate a service request, wherein the service request includes a cache expiration time of the service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the server is used to execute the reverse cache control method according to claim 1, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service request; Sending the service request to the server, so that the server determines a cache update time based on the cache relative time, and determines the state of the service data cached by the client by comparing the cache update time with the cache expiration time; If a standard code returned by the server is received, the cached business data is acquired, wherein the standard code is returned when the state of the business data cached by the client is valid.

4. The method according to claim 3, It is characterized in that The sending the service request to the server includes: Determining a state of the cached service data based on the cache relative time; If the status of the cached service data is invalid, sending the service request to the server.

5. A client, It is characterized in that The client comprises: A second processing module is used to generate a service request, wherein the service request includes a cache expiration time of the service data corresponding to the service request cached by the client, the service data cached by the client, the cache expiration time, and the cache relative time of the service data are returned by the server, the server is used to execute the reverse cache control method according to claim 1, the cache expiration time is determined by the server based on the cache relative time, and the service data and the cache relative time are obtained by the server from the service request; A second communication module is used to send the service request to the server, so that the server determines the cache update time based on the cache relative time, and determines the state of the service data cached by the client by comparing the cache update time and the cache expiration time; and receive the standard code returned by the server; The second processing module is further used to obtain the cached business data, and the standard code is returned when the state of the business data cached by the client is valid.

6. A reverse cache control method, It is characterized in that The method is applied to a service end, and the method includes: Receiving a service request sent by a server, the server being used to execute the reverse cache control method according to claim 1, wherein the service request is sent by a client to the server; Obtaining business data corresponding to the business request and a cache relative time corresponding to the business data; The service data and the cache relative time are returned to the server, where the service data and the cache relative time are the basis or basis for the interaction between the server and the client.

7. A business end, It is characterized in that The business end includes: A third communication module, configured to receive a service request sent by a server, wherein the server is configured to execute the reverse cache control method according to claim 1, and wherein the service request is sent by a client to the server; A third processing module is used to obtain the service data corresponding to the service request and the cache relative time corresponding to the service data; The third communication module is further used to return the service data and the cache relative time to the server, where the service data and the cache relative time are the basis or basis for the interaction between the server and the client.

8. A reverse cache control system, It is characterized in that The system comprises: The server as described in claim 2, the client as described in claim 5, and the business end as described in claim 7.