WO2020062910A1 - 数据缓存 - Google Patents
数据缓存 Download PDFInfo
- Publication number
- WO2020062910A1 WO2020062910A1 PCT/CN2019/090030 CN2019090030W WO2020062910A1 WO 2020062910 A1 WO2020062910 A1 WO 2020062910A1 CN 2019090030 W CN2019090030 W CN 2019090030W WO 2020062910 A1 WO2020062910 A1 WO 2020062910A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- server
- request
- request item
- returned
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
Definitions
- the present disclosure relates to communication technology, and more particularly to data caching.
- HTTP HyperText Transfer Protocol
- the standard HTTP / 1.1 protocol has processing logic for HTTP request cache, which defines Last-Modified, Entity Tag (ETag), and Expires header information to process HTTP requests.
- Last update time return content fingerprint
- request content expiration time e.g., a request content expiration time.
- the cache processing scheme provided by the traditional HTTP protocol has the following two problems: The first problem is that the traditional HTTP protocol performs cache processing based on the Uniform Resource Locator (URL) dimension. As long as the URL changes, the cache Immediately invalid; the second problem is that the traditional HTTP protocol caches the entire content of the request, and for some content changes, the previous data cannot be reused.
- the first problem is that the traditional HTTP protocol performs cache processing based on the Uniform Resource Locator (URL) dimension. As long as the URL changes, the cache Immediately invalid; the second problem is that the traditional HTTP protocol caches the entire content of the request, and for some content changes, the previous data cannot be reused.
- URL Uniform Resource Locator
- the present disclosure provides a data caching method and apparatus, a computing processing device, and a computer-readable storage medium.
- a data caching method includes:
- the method further includes:
- the method further includes:
- the client Before adding the identification data in the data returned by the server for the corresponding data segment to the data segment contained in the request item, it is determined that the client caches the data returned by the server for the corresponding data segment last time.
- the method further includes:
- the current request includes a current Hypertext Transfer Protocol (HTTP) request or a Current Transmission Control Protocol (TCP) request
- the identification data includes one of a last modification, an entity label, an expiration time, and a version number. Item or items of data.
- a data cache device includes:
- An obtaining module configured to obtain at least one request item corresponding to a data segment from a current request
- a sending module configured to send the request item after the identification data added by the adding module to the server
- a first receiving module is configured to receive the latest data or incremental data returned by the server according to the request item to which the identification data is added and sent by the sending module.
- the apparatus further includes:
- a second receiving module is configured to receive information that the server returns no updated data according to the request item added with the identification data and sent by the sending module.
- the apparatus further includes:
- a determining module configured to determine, before the adding module adds the identification data in the data returned by the server for the corresponding data segment last time to the data segment included in the request item, the client caches the last time The data returned by the corresponding data segment.
- the sending module is further configured to:
- the determining module determines that the client has not cached the data returned by the server for the corresponding data segment last time, sending the request item obtained from the current request to the server;
- the receiving and buffering module is configured to receive data returned by the server for the data segment included in the request item obtained by the sending module, and cache the data and the corresponding data segment identifier.
- the current request includes a current Hypertext Transfer Protocol (HTTP) request or a current Transmission Control Protocol TCP request
- the identification data includes one of a last modification, an entity label, an expiration time, and a version number, or A few items of data.
- a computer-readable storage medium stores a computer program, and the computer program is configured to execute the foregoing data caching method.
- a computer program including computer-readable code that, when the computer-readable code runs on a computing processing device, causes the computing processing device to execute the above-mentioned data caching method.
- a computing processing device including a processor, a memory, and a computer program stored on the memory and executable on the processor.
- the processor executes the computer program, Implement the above data caching method.
- At least one request item corresponding to a data segment is obtained from the current request, and identification data in the data returned by the server for the corresponding data segment last time is added to the data segment contained in the request item, and then sent to the server.
- Adding a request item with identification data, and receiving the latest or incremental data returned by the server according to the request item can support a single request for multiple data segments to cache data, thereby achieving the purpose of incremental updates, which can save server and client
- the bandwidth between the server and the client increases the speed of communication between the server and the client.
- FIG. 1 is a flowchart of a data cache method according to an exemplary embodiment of the present disclosure
- FIG. 2 is a flowchart of another data cache method according to an exemplary embodiment of the present disclosure
- FIG. 3 is a flowchart of another data caching method according to an exemplary embodiment of the present disclosure.
- FIG. 4 is a hardware structural diagram of a computing processing device in which a data cache device is located according to an exemplary embodiment of the present disclosure
- Fig. 5 is a block diagram of a data cache device according to an exemplary embodiment of the present disclosure.
- FIG. 6 is a block diagram of another data cache device according to an exemplary embodiment of the present disclosure.
- FIG. 7 is a block diagram of another data cache device according to an exemplary embodiment of the present disclosure.
- FIG. 8 is a hardware structural diagram of another computing processing device according to an exemplary embodiment of the present disclosure.
- Fig. 9 is a structural diagram of a storage unit for holding or carrying program code for implementing a method according to the present disclosure, according to an exemplary embodiment of the present disclosure.
- first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
- word “if” as used herein can be interpreted as “at” or "when” or "in response to determination”.
- FIG. 1 is a flowchart of a data caching method according to an exemplary embodiment of the present disclosure. As shown in FIG. 1, the method includes:
- Step S101 Obtain at least one request item corresponding to a data segment from a current request.
- the current request may include, but is not limited to, a current Hypertext Transfer Protocol (HTTP) request or a current Transmission Control Protocol (TCP) request.
- HTTP Hypertext Transfer Protocol
- TCP Transmission Control Protocol
- one or more request items may be obtained from the current request, where each request item may correspond to one or more data segments, and each request item may be distinguished by an identifier.
- step S102 the identification data in the data returned by the server for the corresponding data segment last time is added to the data segment contained in the request item.
- the identification data refers to data that can be distinguished by identification.
- the identification data may include, but is not limited to, one or more of Last-Modified, Entity Tag (ETag), Expires, and Version. Item data.
- ETag Entity Tag
- Expires Entity Tag
- Version Version. Item data.
- step S102 it may be determined that the client caches the data returned by the server from the corresponding data segment last time, and then adds the data corresponding to the server from the corresponding data segment to the data segment included in the request item. Identification data in the data returned by the segment.
- step S103 a request item with identification data is sent to the server.
- the client such as a browser
- the client After the client, such as a browser, adds identification data to the request item, it can send the request item with the identification data added to the server.
- Step S104 Receive the latest data or incremental data returned by the server according to the request item to which the identification data is added.
- the method may further include:
- step S105 the receiving server has no updated information according to the data returned by the request item added with the identification data.
- Last-Modified information is added to the request item, it can compare the Last-Modified information carried in the request item with the modification time of the latest content on the server. If there is no data update after the Last-Modified time returned by the second request, a code (304) is returned to tell the client that the content is not updated; if there is a data update, the latest data or incremental data is returned.
- the server After the server receives the request item with the identification data, if the ETag information is added to the request item, it can compare the ETag information carried in the request item with the ETag of the latest content on the server side. If the two are consistent, the code is returned. : 304 to tell the client that the data has not been modified; if they are not consistent, the latest or incremental data is returned.
- the server After the server receives the request item with the identification data added, if Version information is added to the request item, it can compare the Version information carried in the request item with the Version information of the latest content on the server side. If the two are consistent, it returns code: 304 to tell the client that the data has not been modified; if the two do not match, the latest or incremental data is returned.
- At least one request item corresponding to the data segment is obtained from the current request, and the identification data in the data returned by the server for the corresponding data segment last time is added to the data segment contained in the request item, and then the addition is sent to the server.
- Requests with identification data, and receiving the latest data or incremental data returned by the server according to the request with the identification data added can support a single request for multiple data segments to cache data, thereby achieving the purpose of incremental updates, which can save The bandwidth traffic between the server and the client improves the communication speed between the server and the client.
- Fig. 3 is a flowchart illustrating another data caching method according to an exemplary embodiment of the present disclosure. As shown in Fig. 3, the method may include:
- Step S301 Obtain at least one request item corresponding to a data segment from a current request.
- the current request may include, but is not limited to, a current Hypertext Transfer Protocol (HTTP) request or a current Transmission Control Protocol (TCP) request.
- HTTP Hypertext Transfer Protocol
- TCP Transmission Control Protocol
- one or more request items may be obtained from the current request, where each request item may correspond to one or more data segments, and each request item may be distinguished by an identifier.
- step S302 it is determined whether the client has cached the data returned by the server for the corresponding data segment last time. If the data is cached, step S303 is performed. If the data is not cached, step S306 is performed.
- step S303 the identification data in the data returned by the server for the corresponding data segment last time is added to the data segment contained in the request item.
- the identification data refers to data that can be distinguished by identification.
- the identification data may include, but is not limited to, one or more of Last-Modified, Entity Tag (ETag), Expires, and Version. Item data.
- ETag Entity Tag
- Expires Entity Tag
- Version Version. Item data.
- Step S304 Send a request item with the identification data added to the server.
- Step S305 Receive the latest data or incremental data returned by the server according to the request item added with the identification data, and the operation ends.
- the server it is first necessary to determine whether the client has cached the data returned by the server for the corresponding data segment last time, and if the cached corresponding data is added to the data segment contained in the request item, the server was last returned for the corresponding data segment.
- the identification data in the data and sends a request item with the identification data added to the server, so that the server can return the latest data or incremental data when it is determined that the data is updated according to the identification data.
- Step S306 Send the request item obtained from the current request to the server, receive data returned by the server for the data segment included in the request item obtained above, and cache the data and the corresponding data segment identifier.
- the cached data can be distinguished by the data segment identifier. For example, in multiple HTTP requests, as long as the data segment identifiers are consistent, cache sharing can be achieved without being limited to the same URL, that is, this embodiment can support cross- The data cache between URLs can also update part of the cache.
- the request item obtained from the current request may be directly sent to the server, and the receiving server includes the data segment included in the request item.
- the client by determining that the client caches the data returned by the server for the corresponding data segment last time, adds the identification data in the data returned by the server for the corresponding data segment to the data segment contained in the request item and sends it to the server.
- the bandwidth between the server and the client improves the communication speed.
- the client When it is determined that the client has not cached the data returned by the server for the corresponding data segment, it sends a request directly to the server to receive the data returned by the server. Thereby, conditions are provided for subsequent sending of the request items with the identification data added to the server and the latest or incremental data returned by the receiving server according to the request items with the identification data added.
- the present disclosure also provides embodiments of a data caching device.
- the embodiments of the data caching apparatus of the present disclosure may be applied to a computing processing device.
- the computing processing device may be a device where the client is located.
- the device embodiments may be implemented by software, or by hardware or a combination of software and hardware.
- FIG. 4 it is a hardware structure diagram of a computing processing device in which the data cache device 400 of the present disclosure is located.
- the computing processing device includes a processor 410, a memory 420, and a processor 410 stored on the memory 420 and running on the processor 410.
- a computer program, the processor 410 implements the above-mentioned data caching method when executing the computer program.
- the computing processing device in which the device is located in the embodiment may generally include other hardware according to the actual function of the data cache, and details are not described herein again.
- FIG. 5 is a block diagram of a data cache device according to an exemplary embodiment of the present disclosure. As shown in FIG. 5, the data cache device includes: an obtaining module 51, an adding module 52, a sending module 53, and a first receiving module 54.
- the obtaining module 51 is configured to obtain at least one request item corresponding to a data segment from a current request.
- the current request may include, but is not limited to, a current Hypertext Transfer Protocol (HTTP) request or a Transmission Control Protocol (TCP) request.
- HTTP Hypertext Transfer Protocol
- TCP Transmission Control Protocol
- one or more request items may be obtained from the current request, where each request item may correspond to one or more data segments, and each request item may be distinguished by an identifier.
- the adding module 52 is configured to add, to the data segment included in the request item obtained by the obtaining module 51, identification data in the data returned by the server for the corresponding data segment last time.
- the identification data refers to data that can be distinguished by identification.
- the identification data may include, but is not limited to, one or more of Last-Modified, Entity Tag (ETag), Expires, and Version. Item data.
- ETag Entity Tag
- Expires Entity Tag
- Version Version. Item data.
- the client before adding the identification data in the data returned by the server for the corresponding data segment to the data segment contained in the request item, it may be determined that the client has cached the data returned by the server for the corresponding data segment last time. , And then add the identification data in the data returned by the server for the corresponding data segment to the data segment contained in the request item.
- the sending module 53 is configured to send a request item after the adding module 52 adds the identification data to the server.
- the adding module After the adding module adds the identification data to the request item, it can send a request item with the identification data added to the server.
- the first receiving module 54 is configured to receive the latest data or incremental data returned by the server according to the request item added with the identification data and sent by the sending module 53.
- Last-Modified information is added to the request, the Last-Modified information carried in the request is compared with the modification time of the latest content on the server. If the Last-Modified returned by the last request If no data is updated after time, the code is returned: 304 to tell the client that the content is not updated; if there is data update, the latest data or incremental data is returned.
- the server After the server receives the request item, if ETag information is added to the request item, it compares the ETag information carried in the request item with the ETag of the latest content on the server side. If the two are consistent, it returns code: 304 to tell the client The data is not modified; if they are not consistent, the latest or incremental data is returned.
- the server After the server receives the request item, if Version information is added to the request item, the Version information carried in the request item can be compared with the version information of the latest content on the server side. If the two are consistent, it returns code: 304 to tell The client data is not modified; if they are not consistent, the latest or incremental data is returned.
- At least one request item corresponding to the data segment is obtained from the current request, and the identification data in the data returned by the server for the corresponding data segment last time is added to the data segment contained in the request item, and then the addition is sent to the server.
- the bandwidth traffic between the server and the client improves the communication speed between the server and the client.
- FIG. 6 is a block diagram of another data cache apparatus according to an exemplary embodiment of the present disclosure. As shown in FIG. 6, based on the embodiment shown in FIG. 5, the data cache apparatus may further include: a second receiving Module 55.
- the second receiving module 55 is configured to receive information that the server returns no updated data according to the request item added with the identification data sent by the sending module 53.
- the cached data can be distinguished by the data segment identifier. For example, in multiple HTTP requests, as long as the data segment identifiers are consistent, cache sharing can be achieved without being limited to the same URL, that is, this embodiment can support cross- The data cache between URLs can also update part of the cache.
- the client first, it is necessary to determine whether the client has cached the data returned by the server for the corresponding data segment last time. If the corresponding data is not cached, the request item is directly sent to the server, and the server receives the data contained in the request item. The data returned by the segment, and caches the data and the corresponding data segment identifier, thereby providing conditions for subsequent sending of the request item with the identification data to the server and the receipt of the latest or incremental data returned by the server according to the request item with the identification data added .
- the request item when it is determined that the client has not cached the data returned by the server for the corresponding data segment last time, the request item is directly sent to the server to receive and cache the data returned by the server, thereby adding identification data for subsequent transmission to the server. And the latest or incremental data returned by the receiving server according to the request item to which the identification data is added provides conditions.
- FIG. 7 is a block diagram of another data cache device according to an exemplary embodiment of the present disclosure. As shown in FIG. 7, based on the embodiment shown in FIG. 5, the data cache device may further include a determining module 56. .
- the determining module 56 is configured to determine, before the adding module 52 adds the identification data in the data returned by the server for the corresponding data segment in the data segment included in the request item, that the client has cached the last time the server returned for the corresponding data segment. data.
- the current request includes a current Hypertext Transfer Protocol request or a current Transmission Control Protocol request
- the identification data includes one or more of a last modification, an entity label, an expiration time, and a version number. data.
- the identification data in the data returned by the server for the corresponding data segment last time is added to the data segment included in the request item, so that Subsequent sending of the request item with the identification data added to the server and the receiving of the latest or incremental data returned by the server according to the request item with the identification data provide the conditions.
- a computer-readable storage medium stores a computer program for performing the foregoing data caching method.
- the data caching method includes:
- the receiving server returns the latest data or incremental data according to the request item to which the identification data is added.
- the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
- the relevant part may refer to the description of the method embodiment.
- the device embodiments described above are only schematic, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place. , Or it can be distributed to multiple network elements. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solution of the present disclosure. Those of ordinary skill in the art can understand and implement without creative efforts.
- the various component embodiments of the present disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
- a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components in a computing processing device according to an embodiment of the present disclosure.
- the present disclosure may also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing part or all of the methods described herein.
- Such a program that implements the present disclosure may be stored on a computer-readable medium or may have the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- FIG. 8 illustrates a computing processing device that can implement a method according to the present disclosure.
- the computing processing device traditionally includes a processor 810 and a computer program product in the form of a memory 820 or a computer-readable medium.
- the memory 820 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
- the memory 820 has a storage space 8202 for executing the program code 8201 of any of the method steps described above.
- the storage space 8202 for the program code may include respective program codes 8201 respectively for implementing various steps in the above method.
- These program codes can be read from or written into one or more computer program products.
- Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
- Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
- the storage unit may have a storage section, a storage space, and the like arranged similarly to the memory 820 in the computing processing device of FIG. 8.
- the program code may be compressed, for example, in a suitable form.
- the storage unit includes computer-readable code 8201 ', that is, code that can be read by, for example, a processor such as 810, which when executed by a computing processing device, causes the computing processing device to execute the data cache described above Steps in the method.
- one embodiment means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention.
- the word examples "in one embodiment” herein do not necessarily refer to the same embodiment.
- any reference signs placed between parentheses shall not be construed as limiting the claim.
- the word “comprising” does not exclude the presence of elements or steps not listed in a claim.
- the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements.
- the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claim listing several devices, several of these devices may be embodied by the same hardware item.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
一种数据缓存方法及装置、计算处理设备和计算机可读存储介质。其中,数据缓存方法包括:从当前请求中获取至少一个与数据段对应的请求项(S101);在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据(S102);向服务器发送添加有标识数据的请求项(S103);接收服务器根据所述添加有标识数据的请求项返回的最新数据或增量数据(S104)。
Description
本申请要求在2018年9月28日提交中国专利局、申请号为201811141102.X、发明名称为“一种数据缓存方法及装置、电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本公开涉及通信技术,尤其涉及数据缓存。
目前常用的浏览器,例如谷歌浏览器(Google Chrome)、火狐(Firefox)、微软浏览器(Internet Explorer)或苹果浏览器(Safari)等都支持超文本传输协议(HyperText Transfer Protocol,简称HTTP)/1.1协议中的缓存处理,以达到节省带宽和提高访问速度的目的。
其中,标准的HTTP/1.1协议有针对HTTP请求缓存的处理逻辑,分别定义了上次修改(Last-Modified)、实体标签(Entity Tag,简称ETag)、过期时间(Expires)头信息来处理HTTP请求最后更新时间、返回内容指纹、请求内容过期时间。
但是,传统的HTTP协议提供的缓存处理方案存在以下两个问题:第一个问题是:传统的HTTP协议基于统一资源定位符(Uniform Resource Locator,URL)维度进行缓存处理,只要URL发生变化,缓存立即失效;第二个问题是:传统的HTTP协议缓存的是请求的全部内容,对于部分内容变更,无法复用之前的数据。
发明内容
有鉴于此,本公开提供一种数据缓存方法及装置、计算处理设备和计算机可读存储介质。
具体地,本公开是通过如下技术方案实现的:
根据本公开实施例的第一方面,提供一种数据缓存方法,所述方法包括:
从当前请求中获取至少一个与数据段对应的请求项;
在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据;
向所述服务器发送添加有所述标识数据的请求项;
接收所述服务器根据所述添加有所述标识数据的请求项返回的最新数据或增量数据。
在一实施例中,所述方法还包括:
接收所述服务器根据所述添加有所述标识数据的请求项返回的数据无更新的信息。
在一实施例中,所述方法还包括:
在所述在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,确定客户端缓存有所述服务器上一次针对所述对应数据段返回的数据。
在一实施例中,所述方法还包括:
若确定客户端未缓存有所述服务器上一次针对所述对应数据段返回的数据,则向所述服务器发送从当前请求中获取的所述请求项;
接收所述服务器为所述获取的所述请求项包含的数据段返回的数据,并缓存所述数据及对应的数据段标识。
在一实施例中,所述当前请求包括当前超文本传输协议(HTTP)请求或当前传输控制协议(TCP)请求,所述标识数据包括上次修改、实体标签、过期时间和版本号中的一项或几项数据。
根据本公开实施例的第二方面,提供一种数据缓存装置,所述装置包括:
获取模块,用于从当前请求中获取至少一个与数据段对应的请求项;
添加模块,用于在所述获取模块获取的所述请求项包含的数据段中添加
服务器上一次针对对应数据段返回的数据中的标识数据;
发送模块,用于向所述服务器发送所述添加模块添加的所述标识数据后的所述请求项;
第一接收模块,用于接收所述服务器根据所述发送模块发送的所述添加有所述标识数据的请求项返回的最新数据或增量数据。
在一实施例中,所述装置还包括:
第二接收模块,用于接收所述服务器根据所述发送模块发送的所述添加有所述标识数据的请求项返回的数据无更新的信息。
在一实施例中,所述装置还包括:
确定模块,用于在所述添加模块在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,确定客户端缓存有所述服务器上一次针对所述对应数据段返回的数据。
在一实施例中,所述发送模块,还用于:
若所述确定模块确定客户端未缓存有所述服务器上一次针对所述对应数据段返回的数据,则向所述服务器发送从当前请求中获取的所述请求项;
接收缓存模块,用于接收所述服务器为所述发送模块发送的获取的所述请求项包含的数据段返回的数据,并缓存所述数据及对应的数据段标识。
在一实施例中,所述当前请求包括当前超文本传输协议(HTTP)请求或当前传输控制协议TCP请求,所述标识数据包括上次修改、实体标签、过期时间和版本号中的一项或几项数据。
根据本公开实施例的第三方面,提供一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行上述数据缓存方法。
根据本公开实施例的第四方面,提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行上述的数据缓存方法。
根据本公开实施例的第五方面,提供一种计算处理设备,包括处理器、存储器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述数据缓存方法。
本公开实施例,通过从当前请求中获取至少一个与数据段对应的请求项,并在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据,然后向服务器发送添加有标识数据的请求项,并接收服务器根据请求项返回的最新数据或增量数据,可以支持单请求多数据段的数据缓存,从而达到增量更新的目的,进而可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
为了更清楚地说明本公开实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开一示例性实施例示出的一种数据缓存方法的流程图;
图2是本公开一示例性实施例示出的另一种数据缓存方法的流程图;
图3是本公开一示例性实施例示出的另一种数据缓存方法的流程图;
图4是本公开一示例性实施例示出的数据缓存装置所在计算处理设备的一种硬件结构图;
图5是本公开一示例性实施例示出的一种数据缓存装置的框图;
图6是本公开一示例性实施例示出的另一种数据缓存装置的框图;
图7是本公开一示例性实施例示出的另一种数据缓存装置的框图;
图8是本公开一示例性实施例示出的另一种计算处理设备的一种硬件结构图;
图9是本公开一示例性实施例示出的用于保持或者携带实现根据本公开的方法的程序代码的存储单元结构图。
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
在本公开使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开。在本公开和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本公开可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
图1是本公开一示例性实施例示出的一种数据缓存方法的流程图,如图1所示,该方法包括:
步骤S101,从当前请求中获取至少一个与数据段对应的请求项。
其中,当前请求可以包括但不局限于当前超文本传输协议(HTTP)请求或当前传输控制协议(Transmission Control Protocol,简称TCP)请求。
在该实施例中,可以从当前请求中获取一个或多个请求项,其中,每个请求项可以与一个或多个数据段对应,每个请求项可以通过标识区分开。
步骤S102,在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据。
其中,标识数据是指能够通过标识进行区分的数据。
在该实施例中,标识数据可以包括但不局限于上次修改(Last-Modified)、实体标签(Entity Tag,简称ETag)、过期时间(Expires)和版本号(Version)中的一项或几项数据。
在该实施例中,在执行步骤S102之前,可以先确定客户端缓存有服务器上一次针对所述对应数据段返回的数据,然后在请求项包含的数据段中添加服务器上一次针对所述对应数据段返回的数据中的标识数据。
步骤S103,向服务器发送添加有标识数据的请求项。
客户端例如浏览器在请求项中添加标识数据之后,可以向服务器发送添加有标识数据的请求项。
步骤S104,接收服务器根据所述添加有标识数据的请求项返回的最新数据或增量数据。
可选地,如图2所示,在步骤S103之后,该方法还可以包括:
步骤S105,接收服务器根据所述添加有标识数据的请求项返回的数据无更新的信息。
服务器在接收到添加有标识数据的请求项之后,如果请求项中添加有Last-Modified信息,则可以将请求项中携带的Last-Modified信息与服务器上最新内容的修改时间进行对比,如果在上次请求返回的Last-Modified时间后无数据更新,则返回代码(code):304,以告诉客户端内容无更新;如果存在数据更新,则返回最新数据或增量数据。
服务器在接收到添加有标识数据的请求项之后,如果请求项中添加有ETag信息,则可以将请求项中携带的ETag信息和服务器端最新内容的ETag进行对比,若二者一致,则返回code:304,以告诉客户端数据无修改;如果二者不一致,则返回最新数据或增量数据。
服务器在接收到添加有标识数据的请求项之后,如果请求项中添加有Version信息,则可以将请求项中携带的Version信息和服务器端最新内容的Version信息进行对比,若二者一致,则返回code:304,以告诉客户端数据无修改;如果二者不一致,则返回最新数据或增量数据。
需要说明的是,服务器对其他标识数据的处理过程与上述过程类似,此处不详述。
由于该实施例中可以仅返回最新数据或增量数据,而不需要返回全部数据,因此可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
上述实施例,通过从当前请求中获取至少一个与数据段对应的请求项,并在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据,然后向服务器发送添加有标识数据的请求项,并接收 服务器根据添加有标识数据的请求项返回的最新数据或增量数据,可以支持支持单请求多数据段的数据缓存,从而达到增量更新的目的,进而可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
图3是本公开一示例性实施例示出的另一种数据缓存方法的流程图,如图3所示,该方法可以包括:
步骤S301,从当前请求中获取至少一个与数据段对应的请求项。
其中,当前请求可以包括但不局限于当前超文本传输协议(HTTP)请求或当前传输控制协议(Transmission Control Protocol,简称TCP)请求。
在该实施例中,可以从当前请求中获取一个或多个请求项,其中,每个请求项可以与一个或多个数据段对应,每个请求项可以通过标识区分开。
步骤S302,确定客户端是否缓存有服务器上一次针对对应数据段返回的数据,若缓存有该数据,则执行步骤S303,若未缓存有该数据,则执行步骤S306。
步骤S303,在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据。
其中,标识数据是指能够通过标识进行区分的数据。
在该实施例中,标识数据可以包括但不局限于上次修改(Last-Modified)、实体标签(Entity Tag,简称ETag)、过期时间(Expires)和版本号(Version)中的一项或几项数据。
步骤S304,向服务器发送添加有标识数据的请求项。
步骤S305,接收服务器根据上述添加有标识数据的请求项返回的最新数据或增量数据,操作结束。
在该实施例中,首先需要确定客户端是否缓存有服务器上一次针对对应数据段返回的数据,若缓存有对应的数据,则在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据,并向服务器发送添加有标识数据的请求项,使得服务器可以根据该标识数据在确定数据存在更新时,返回最新数据或增量数据。
由于该实施例中可以仅返回最新数据或增量数据,而不需要返回全部数据,因此可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
步骤S306,向服务器发送从当前请求中获取的所述请求项,接收服务器为上述获取的所述请求项包含的数据段返回的数据,并缓存上述数据及对应的数据段标识。
其中,缓存数据可以通过数据段标识进行区分,例如,在多个HTTP请求中,只要数据段标识一致,就可以做到缓存共享,而不会受限于同一URL,即该实施例可以支持跨URL之间的数据缓存,同时也可以做到更新部分缓存。
在该实施例中,在客户端未缓存有服务器上一次针对对应数据段返回的数据时,可以直接向服务器发送从当前请求中获取的所述请求项,接收服务器为该请求项包含的数据段返回的数据,并缓存数据及对应的数据段标识,从而为后续向服务器发送添加有标识数据的请求项以及接收服务器根据添加有标识数据的请求项返回的最新数据或增量数据提供了条件。
上述实施例,通过在确定客户端缓存有服务器上一次针对对应数据段返回的数据,在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据,并向服务器发送包含标识数据的请求项,以接收服务器根据数据标识返回的最新数据或增量数据,以支持支持单请求多数据段的数据缓存,从而达到增量更新的目的,进而可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度;而在确定客户端未缓存有服务器上一次针对对应数据段返回的数据时,直接向服务器发送请求项,以接收服务器返回的数据,从而为后续向服务器发送添加有标识数据的请求项以及接收服务器根据添加有标识数据的请求项返回的最新数据或增量数据提供了条件。
与前述数据缓存方法的实施例相对应,本公开还提供了数据缓存装置的实施例。
本公开数据缓存装置的实施例可以应用在计算处理设备上。其中,该 计算处理设备可以为客户端所在的设备。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。如图4所示,为本公开数据缓存装置400所在计算处理设备的一种硬件结构图,该计算处理设备包括处理器410、存储器420及存储在存储器420上并可在处理器410上运行的计算机程序,该处理器410执行该计算机程序时实现上述数据缓存方法。除了图4所示的处理器410及存储器420之外,实施例中装置所在的计算处理设备通常根据该数据缓存的实际功能,还可以包括其他硬件,对此不再赘述。
图5是本公开一示例性实施例示出的一种数据缓存装置的框图,如图5所示,该数据缓存装置包括:获取模块51、添加模块52、发送模块53和第一接收模块54。
获取模块51用于从当前请求中获取至少一个与数据段对应的请求项。
其中,当前请求可以包括但不局限于当前超文本传输协议(HTTP)请求或传输控制协议(Transmission Control Protocol,简称TCP)请求。
在该实施例中,可以从当前请求中获取一个或多个请求项,其中,每个请求项可以与一个或多个数据段对应,每个请求项可以通过标识区分开。
添加模块52用于在获取模块51获取的请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据。
其中,标识数据是指能够通过标识进行区分的数据。
在该实施例中,标识数据可以包括但不局限于上次修改(Last-Modified)、实体标签(Entity Tag,简称ETag)、过期时间(Expires)和版本号(Version)中的一项或几项数据。
在该实施例中,在执行在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,可以先确定客户端缓存有服务器上一次针对对应数据段返回的数据,然后在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据。
发送模块53用于向服务器发送添加模块52添加了标识数据后的请求项。
添加模块在请求项中添加标识数据之后,可以向服务器发送添加有标识 数据的请求项。
第一接收模块54用于接收服务器根据发送模块53发送的所述添加有标识数据的请求项返回的最新数据或增量数据。
服务器在接收请求项之后,如果请求项中添加有Last-Modified信息,则将请求项中携带的Last-Modified信息与服务器上最新内容的修改时间进行对比,如果在上次请求返回的Last-Modified时间后无数据更新,则返回代码(code):304,以告诉客户端内容无更新;如果存在数据更新,则返回最新数据或增量数据。
服务器在接收请求项之后,如果请求项中添加有ETag信息,则将请求项中携带的ETag信息和服务器端最新内容的ETag进行对比,若二者一致,则返回code:304,以告诉客户端数据无修改;如果二者不一致,则返回最新数据或增量数据。
服务器在接收请求项之后,如果请求项中添加有Version信息,则可以将请求项中携带的Version信息和服务器端最新内容的Version信息进行对比,若二者一致,则返回code:304,以告诉客户端数据无修改;如果二者不一致,则返回最新数据或增量数据。
需要说明的是,服务器对其他标识数据的处理过程与上述过程类似,此处不详述。
由于该实施例中可以仅返回最新数据或增量数据,而不需要返回全部数据,因此可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
上述实施例,通过从当前请求中获取至少一个与数据段对应的请求项,并在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据,然后向服务器发送添加有标识数据的请求项,并接收服务器根据上述添加有数据标识的请求项返回的最新数据或增量数据,以支持单请求多数据段的数据缓存,从而达到增量更新的目的,进而可以节省服务器和客户端之间的带宽流量,提高服务器和客户端之间的通信速度。
图6是本公开一示例性实施例示出的另一种数据缓存装置的框图,如图6所示,在上述图5所示实施例的基础上,该数据缓存装置还可以包括: 第二接收模块55。
第二接收模块55,用于接收服务器根据发送模块53发送的添加有所述标识数据的请求项返回的数据无更新的信息。
其中,缓存数据可以通过数据段标识进行区分,例如,在多个HTTP请求中,只要数据段标识一致,就可以做到缓存共享,而不会受限于同一URL,即该实施例可以支持跨URL之间的数据缓存,同时也可以做到更新部分缓存。
在该实施例中,首先需要确定客户端是否缓存有服务器上一次针对对应数据段返回的数据,若未缓存有对应的数据,则直接向服务器发送请求项,接收服务器为该请求项包含的数据段返回的数据,并缓存数据及对应的数据段标识,从而为后续向服务器发送添加有标识数据的请求项以及接收服务器根据添加有标识数据的请求项返回的最新数据或增量数据提供了条件。
上述实施例,通过在确定客户端未缓存有服务器上一次针对对应数据段返回的数据时,直接向服务器发送请求项,以接收并缓存服务器返回的数据,从而为后续向服务器发送添加有标识数据的请求项以及接收服务器根据添加有标识数据的请求项返回的最新数据或增量数据提供了条件。
图7是本公开一示例性实施例示出的另一种数据缓存装置的框图,如图7所示,在上述图5所示实施例的基础上,该数据缓存装置还可以包括:确定模块56。
确定模块56用于在添加模块52在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,确定客户端缓存有服务器上一次针对所述对应数据段返回的数据。
若确定客户端未缓存有所述服务器上一次针对所述对应数据段返回的数据,则向所述服务器发送从当前请求中获取的所述请求项;接收所述服务器为所述获取的所述请求项包含的数据段返回的数据,并缓存所述数据及对应的数据段标识。
本公开的一些实施例中,所述当前请求包括当前超文本传输协议请求或当前传输控制协议请求,所述标识数据包括上次修改、实体标签、过期时间 和版本号中的一项或几项数据。
上述实施例,通过确定客户端缓存有服务器上一次针对对应数据段返回的数据时,在请求项包含的数据段中添加服务器上一次针对所述对应数据段返回的数据中的标识数据,从而为后续向服务器发送添加有标识数据的请求项以及接收服务器根据添加有标识数据的请求项返回的最新数据或增量数据提供了条件。
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。
在示例性实施例中,还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序用于执行上述数据缓存方法,其中,该数据缓存方法包括:
从当前请求中获取至少一个与数据段对应的请求项;
在请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据;
向服务器发送添加有标识数据的请求项;
接收服务器根据所述添加有标识数据的请求项返回的最新数据或增量数据。
上述计算机可读存储介质可以是只读存储器(ROM)、随机存取存储器(RAM)、光盘只读存储器(CD-ROM)、磁带、软盘和光数据存储设备等。
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本公开方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原 理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的计算处理设备中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图8示出了可以实现根据本公开的方法的计算处理设备。该计算处理设备传统上包括处理器810和以存储器820形式的计算机程序产品或者计算机可读介质。存储器820可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器820具有用于执行上述方法中的任何方法步骤的程序代码8201的存储空间8202。例如,用于程序代码的存储空间8202可以包括分别用于实现上面的方法中的各种步骤的各个程序代码8201。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图9所述的便携式或者固 定存储单元。该存储单元可以具有与图8的计算处理设备中的存储器820类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码8201’,即可以由例如诸如810之类的处理器读取的代码,这些代码当由计算处理设备运行时,导致该计算处理设备执行上面所描述的数据缓存方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (11)
- 一种数据缓存方法,所述方法包括:从当前请求中获取至少一个与数据段对应的请求项;在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据;向所述服务器发送添加有所述标识数据的所述请求项;接收所述服务器根据所述添加有所述标识数据的请求项返回的最新数据或增量数据。
- 根据权利要求1所述的方法,所述方法还包括:接收所述服务器根据所述添加有所述标识数据的请求项返回的数据无更新的信息。
- 根据权利要求1或2所述的方法,所述方法还包括:在所述在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,确定客户端缓存有所述服务器上一次针对所述对应数据段返回的数据。
- 根据权利要求3所述的方法,所述方法还包括:若确定客户端未缓存有所述服务器上一次针对所述对应数据段返回的数据,则向所述服务器发送从当前请求中获取的所述请求项;接收所述服务器为所述获取的所述请求项包含的数据段返回的数据,并缓存所述数据及对应的数据段标识。
- 根据权利要求1-4任一项所述的方法,所述当前请求包括当前超文本传输协议请求或当前传输控制协议请求,所述标识数据包括上次修改、实体标签、过期时间和版本号中的一项或几项数据。
- 一种数据缓存装置,所述装置包括:获取模块,用于从当前请求中获取至少一个与数据段对应的请求项;添加模块,用于在所述获取模块获取的所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据;发送模块,用于向所述服务器发送所述添加模块添加的所述标识数据后的所述请求项;第一接收模块,用于接收所述服务器根据所述发送模块发送的所述添加 有所述标识数据的请求项返回的最新数据或增量数据。
- 根据权利要求6所述的装置,所述装置还包括:第二接收模块,用于接收所述服务器根据所述发送模块发送的所述添加有所述标识数据的请求项返回的数据无更新的信息。
- 根据权利要求6或7所述的装置,所述装置还包括:确定模块,用于在所述添加模块在所述请求项包含的数据段中添加服务器上一次针对对应数据段返回的数据中的标识数据之前,确定客户端缓存有所述服务器上一次针对所述对应数据段返回的数据。
- 一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序用于执行上述权利要求1-5任一所述的数据缓存方法。
- 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行根据权利要求1-5中的任一所述的数据缓存方法。
- 一种计算处理设备,包括处理器、存储器及存储在所述存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述权利要求1-5任一所述的数据缓存方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811141102.XA CN109344349B (zh) | 2018-09-28 | 2018-09-28 | 一种数据缓存方法及装置、电子设备 |
| CN201811141102.X | 2018-09-28 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020062910A1 true WO2020062910A1 (zh) | 2020-04-02 |
Family
ID=65307299
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/090030 Ceased WO2020062910A1 (zh) | 2018-09-28 | 2019-06-04 | 数据缓存 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109344349B (zh) |
| WO (1) | WO2020062910A1 (zh) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109344349B (zh) * | 2018-09-28 | 2020-12-29 | 北京三快在线科技有限公司 | 一种数据缓存方法及装置、电子设备 |
| CN111404831A (zh) * | 2020-03-19 | 2020-07-10 | 重庆富民银行股份有限公司 | 用于风控系统处理性能的提升方法及系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006031543A (ja) * | 2004-07-20 | 2006-02-02 | Ricoh Co Ltd | 情報提供装置、情報提供方法、情報提供プログラム及び記憶媒体 |
| CN102789470A (zh) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | 加载网页中的图片的方法和装置 |
| CN103686684A (zh) * | 2012-09-20 | 2014-03-26 | 腾讯科技(深圳)有限公司 | 离线缓存的方法及装置 |
| CN107145490A (zh) * | 2016-03-01 | 2017-09-08 | 腾讯科技(深圳)有限公司 | 网页加载展示方法及网页加载展示装置 |
| CN109344349A (zh) * | 2018-09-28 | 2019-02-15 | 北京三快在线科技有限公司 | 一种数据缓存方法及装置、电子设备 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101009516B (zh) * | 2006-01-26 | 2011-05-04 | 华为技术有限公司 | 一种进行数据同步的方法、系统及装置 |
| CN101257485A (zh) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | web应用系统及方法 |
| CN101127960B (zh) * | 2007-09-20 | 2011-05-11 | 中兴通讯股份有限公司 | 一种电子业务指南的差异性更新的系统及方法 |
| CN101159764A (zh) * | 2007-11-21 | 2008-04-09 | 中国电信股份有限公司 | 一种访问移动业务门户数据的方法和系统 |
| US8719243B2 (en) * | 2010-04-27 | 2014-05-06 | Salesforce.Com, Inc. | Methods and systems for filtering data for interactive display of database data |
| US8832061B2 (en) * | 2010-07-02 | 2014-09-09 | Salesforce.Com, Inc. | Optimizing data synchronization between mobile clients and database systems |
| CN103812849B (zh) * | 2012-11-15 | 2018-12-07 | 腾讯科技(深圳)有限公司 | 一种本地缓存更新方法、系统、客户端及服务器 |
| CN103064910B (zh) * | 2012-12-19 | 2016-06-29 | 北京奇虎科技有限公司 | 用于Android系统的处理断层数据的装置和方法 |
-
2018
- 2018-09-28 CN CN201811141102.XA patent/CN109344349B/zh active Active
-
2019
- 2019-06-04 WO PCT/CN2019/090030 patent/WO2020062910A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006031543A (ja) * | 2004-07-20 | 2006-02-02 | Ricoh Co Ltd | 情報提供装置、情報提供方法、情報提供プログラム及び記憶媒体 |
| CN102789470A (zh) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | 加载网页中的图片的方法和装置 |
| CN103686684A (zh) * | 2012-09-20 | 2014-03-26 | 腾讯科技(深圳)有限公司 | 离线缓存的方法及装置 |
| CN107145490A (zh) * | 2016-03-01 | 2017-09-08 | 腾讯科技(深圳)有限公司 | 网页加载展示方法及网页加载展示装置 |
| CN109344349A (zh) * | 2018-09-28 | 2019-02-15 | 北京三快在线科技有限公司 | 一种数据缓存方法及装置、电子设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109344349A (zh) | 2019-02-15 |
| CN109344349B (zh) | 2020-12-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11792294B2 (en) | Method and apparatus for reducing loading time of web pages | |
| US9460229B2 (en) | Methods and systems for implementing a cache model in a prefetching system | |
| TWI713770B (zh) | 實現網路頁面與本體應用通信的方法、裝置和電子設備 | |
| US11095494B2 (en) | Methods and systems for implementing a cache model in a prefetching system | |
| US8880634B2 (en) | Cache sharing among branch proxy servers via a master proxy server at a data center | |
| US9569400B2 (en) | RDMA-optimized high-performance distributed cache | |
| US10680968B2 (en) | Web access performance enhancement | |
| US8977681B2 (en) | Pre-fetching data | |
| WO2016101763A1 (zh) | 通过cdn下载资源的实现方法和装置、服务器、客户端 | |
| US20100146415A1 (en) | Dns prefetch | |
| US8639770B1 (en) | Separation of mutable and immutable data in a memory cache for improvement of data updates | |
| CN108494755B (zh) | 一种传输应用程序编程接口api请求的方法及装置 | |
| CN109634753B (zh) | 切换浏览器内核的数据处理方法、装置、终端和存储介质 | |
| CN110929128A (zh) | 一种数据爬取方法、装置、设备和介质 | |
| WO2020062910A1 (zh) | 数据缓存 | |
| US20200073905A1 (en) | Technologies for cross-device shared web resource cache | |
| CN102333123A (zh) | 文件存储方法、设备、查找方法、设备和网络设备 | |
| US11323537B1 (en) | Generating early hints informational responses at an intermediary server | |
| US9378178B1 (en) | Enhancing HTTP caching by allowing content sharing of data blocks across resources identified by different uniform resource locators | |
| US8924529B2 (en) | Client device identification through cache manipulation | |
| CN108259198A (zh) | 一种域名缓存命中率的预判方法、装置及设备 | |
| US12596763B2 (en) | Reduced latency content prefetching with local behavioral profiles | |
| US20260119399A1 (en) | Proxy traffic optimization by caching media resources | |
| WO2026093315A1 (en) | Proxy traffic optimization by caching media resources | |
| CN114726616A (zh) | 一种网站访问请求的处理方法及装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19865595 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19865595 Country of ref document: EP Kind code of ref document: A1 |