WO2021244070A1 - B/s architecture-based page buffering method and apparatus, device, and medium - Google Patents

B/s architecture-based page buffering method and apparatus, device, and medium Download PDF

Info

Publication number
WO2021244070A1
WO2021244070A1 PCT/CN2021/077441 CN2021077441W WO2021244070A1 WO 2021244070 A1 WO2021244070 A1 WO 2021244070A1 CN 2021077441 W CN2021077441 W CN 2021077441W WO 2021244070 A1 WO2021244070 A1 WO 2021244070A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
cached
list
weight value
pages
Prior art date
Application number
PCT/CN2021/077441
Other languages
French (fr)
Chinese (zh)
Inventor
马聪
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021244070A1 publication Critical patent/WO2021244070A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present invention relates to the field of communication technology, and more specifically, to a method, device, device and medium for page caching based on a B/S architecture.
  • the B/S (Browser/Server, browser/server model) structure uses the increasingly mature web (network) browser technology to realize powerful functions that originally required special software to achieve, and save development costs.
  • AJAX Application Javascript And XML, interactive web application development technology
  • its programs can also be partially processed on the client computer. Thereby reducing the burden on the server.
  • users have to update data every time they click on a different page, especially when the amount of data is large, it may cause the data to be displayed untimely and the user experience is not good.
  • the current popular method is to store the web front-end locally, which saves back-end data locally to reduce the number of interactions.
  • the main storage methods are cookies, sessionStorage, localStorage, webSQL, etc. Cookies exist in the front and back http requests, and the size is only 4k, sessionStorage is available during the browser page session, and is deleted at the end of the session, so they are not suitable for persistent storage of back-end data.
  • LocalStorage is permanent storage. The data still exists after the browser is closed and reopened. However, in order to ensure the consistency of local data and server-side data, websocket communication is generally needed.
  • localStorage also has an upper capacity limit. Generally, browsers default to 4M. Frequent access to some large amounts of data may cause insufficient local storage space.
  • Another popular method is to cache pages in the local dom (Document Object Model, file object model). The dom nodes of the visited pages are stored in the dom. After the page is switched, if there is a page in the cache, the cache dom is directly read. , The effect of this method is that the page flashes quickly, without delay.
  • the purpose of the embodiments of the present invention is to provide a page caching method based on the B/S architecture.
  • LocalStorage saves the dom node.
  • the neural network-related algorithm is used to dynamically adjust and update the dom node to maximize Leverage the advantages of front-end local storage to improve user experience.
  • one aspect of the present invention provides a method for page caching based on a B/S architecture, which includes:
  • the method further includes:
  • the page to be switched to is read from the dom or localStorage.
  • updating the page to be switched to includes: sending a page access request to the server, and responding to the server returning data, according to the returned data Update page
  • the method of the present invention also includes: in response to judging that the remaining space of the localStorage is sufficient, saving the page to be switched to and updating the cached page list.
  • the weight of each page in response to determining that the remaining space of localStorage is insufficient, is calculated according to the weight coefficient of each page and the number of user visits of each page Value, and adjust the cached page list according to the weight value, including:
  • a weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
  • the cache page with the lowest weight value in the cache page list is deleted, and the page nodes cached in the dom and the pages in localStorage are updated according to the cache page list.
  • the data includes:
  • a device for page caching based on a B/S architecture including:
  • Page caching module the page caching module is configured to save the pages visited by the browser in the dom as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the browser's localStorage;
  • the page update module is configured to respond to receiving a page switching request and determine that the page to be switched to is not cached, update the page to be switched to, and determine whether the remaining space of localStorage is sufficient;
  • Weight calculation module the weight calculation module is configured to, in response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjust the cache page list according to the weight value;
  • the list update module is configured to delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
  • the device further includes:
  • the cache reading module is configured to read the page to be switched from dom or localStorage in response to receiving the request to switch the page and judging that the page to be switched to has been cached.
  • the weight calculation module is further configured to:
  • a weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
  • a computer device which includes:
  • At least one processor At least one processor
  • the memory stores a computer program that can run on the processor, and the processor executes the aforementioned page caching method based on the B/S architecture when the processor executes the program.
  • a computer-readable storage medium stores a computer program, wherein the computer program executes the aforementioned B/S architecture-based The method of page caching.
  • the present invention has at least the following beneficial technical effects: the present invention uses localstorage to store dom webpage nodes, updates the priority of each page in real time through server statistics on each page, and retains key dom nodes when the localstorage storage space is insufficient, to maximize performance
  • the advantage of front-end local storage improves system fluency and user experience.
  • Fig. 1 shows a schematic block diagram of an embodiment of a method for page caching based on a B/S architecture according to the present invention
  • Figure 2 shows a flowchart of an embodiment of a method for page caching based on a B/S architecture according to the present invention
  • Fig. 3 shows a schematic block diagram of an embodiment of an apparatus for page caching based on a B/S architecture according to the present invention
  • FIG. 4 shows a schematic block diagram of an embodiment of a computer device according to the method for page caching based on the B/S architecture of the present invention
  • Fig. 5 shows a schematic block diagram of an embodiment of a computer-readable storage medium of a method for page caching based on a B/S architecture according to the present invention.
  • Fig. 1 shows a schematic block diagram of an embodiment of a method for page caching based on a B/S architecture according to the present invention.
  • the method at least includes the following steps:
  • S400 Delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
  • a maximum of 5 dom page nodes are allowed to be cached in the dom tree, that is, the number threshold is 5, and page nodes that need to be cached beyond 5 are stored in localStorage. If the size of data stored in localStorage reaches the upper limit, Then the neural network-related algorithm is introduced to dynamically adjust the dom's web page nodes, and each page is assigned a weight coefficient. The weight coefficient will be dynamically adjusted as the user access data changes. The weight coefficient is multiplied by the number of user visits to obtain the weight value of the page. According to the weight value, the dom node with the lowest important coefficient is removed, and the cache page list is updated.
  • the 5 with the largest weight value are directly stored in dom, and the rest are stored in localStorage.
  • the server monitors the data changes, and informs the web through websocket (full-duplex communication protocol based on TCP) communication to update the data in the web page node of the dom in the cache.
  • websocket full-duplex communication protocol based on TCP
  • Fig. 2 shows a flowchart of an embodiment of a method for page caching based on a B/S architecture according to the present invention. As shown in Figure 2, the specific implementation process is as follows:
  • the user accesses the system to switch the page, determines whether the page is cached, and sends the page access request to the server at the same time;
  • the dynamic adjustment algorithm is executed to obtain the weight value of each page, and the page and the cached page list are updated according to the comparison result of the weight value of each page;
  • the client monitors back-end data changes through the websocket service. When the back-end data changes, it will push a message to the front-end. The client will query related module data and update the data to the local cache dom node.
  • the method further includes:
  • the page In response to receiving the request to switch the page and determining that the page to be switched to has been cached, the page is read from the dom or localStorage.
  • the user accesses the system to switch the page, determines whether the page is cached, and sends the page access request to the server at the same time; if it has been cached, the cached dom is directly read from the dom or localStorage, and the page is updated. .
  • updating to the page to be switched to further includes: sending a page access request to the server, and responding to the server successfully returning data, according to the returned data Update page
  • the method also includes: in response to determining that the remaining space of the localStorage is sufficient, saving the page and updating the cached page list.
  • this page access request is sent directly to the server. After the server returns the data successfully, the page is updated; if the current local storage space is not full, the latest requested page can also be saved , The page is saved and the list of cached pages is updated.
  • the weight value of each page in response to judging that the remaining space of localStorage is insufficient, is calculated according to the weight coefficient of each page and the number of user visits of each page , Adjusting the list of cached pages according to the weight value also includes:
  • a weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
  • the cached page with the lowest weight value in the cached page list is deleted, and the data of the page node cached in the dom and the page in localStorage is updated according to the cached page list Also includes:
  • Remove the page with the lowest weight value in the cache page list store the pages with the largest weight value in the cache page list into the dom according to the threshold of the number of page nodes of the dom, and store the remaining pages in the cache page list in localStorage.
  • the page weight value comparison result is sent to the web client through web socket communication, and the web client directly updates the 5 items with the highest weight value to the dom cache according to the ranking, and removes the one with the lowest weight value. Page, save the rest to localStorage;
  • FIG. 3 shows a schematic block diagram of an embodiment of a device for page caching based on a B/S architecture according to the present invention; as shown in Fig. 3, the device includes:
  • Page caching module 10 which is configured to save pages visited by the browser in dom as cached page nodes, and save pages that exceed the number threshold that need to be cached in the browser’s localStorage;
  • a page update module 20 which is configured to respond to receiving a page switching request and determine that the page to be switched to is not cached, update the page to be switched to, and determine whether the remaining space of the localStorage is sufficient;
  • the weight calculation module 30 is configured to, in response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjust the cache page list according to the weight value ;
  • the list update module 40 is configured to delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
  • the device further includes:
  • the cache reading module 50 is configured to read the page from the dom or localStorage in response to receiving the request for switching the page and determining that the page to be switched to has been cached.
  • the weight calculation module is further configured to:
  • a weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
  • FIG. 4 shows an embodiment of the computer device according to the method for page caching based on the B/S architecture of the present invention.
  • the computer device includes: at least one processor 520; and a memory 510.
  • the memory 510 stores a computer program 511 that can run on the processor 520.
  • Architectural page caching method is also proposed.
  • FIG. 5 shows an implementation of the computer-readable storage medium according to the method for page caching based on the B/S architecture of the present invention Schematic block diagram of the example.
  • the computer-readable storage medium 601 stores a computer program 610, and when the computer program 610 is executed by a processor, the aforementioned page caching method based on the B/S architecture is executed.
  • the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, and the computer program may be stored in a computer-readable storage medium.
  • the computer program executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
  • the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory Memory.
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in many forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and direct Rambus RAM (DRRAM).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link DRAM
  • DRRAM direct Rambus RAM
  • the storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
  • DSP digital signal processors
  • ASIC application-specific integrated circuits
  • FPGA Field Programmable Gate Array
  • a general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.
  • the steps of the method or algorithm described in combination with the disclosure herein may be directly included in hardware, a software module executed by a processor, or a combination of the two.
  • the software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disks, removable disks, CD-ROM (Compact Disc Read Only Memory), or any other known in the art Form of storage media.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from or write information to the storage medium.
  • the storage medium may be integrated with the processor.
  • the processor and the storage medium may reside in the ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted through the computer-readable medium.
  • Computer-readable media include computer storage media and communication media, including any media that facilitates the transfer of a computer program from one location to another location.
  • a storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.
  • the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of Or any other medium that can be accessed by a general-purpose or special-purpose computer or general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium.
  • coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave to send software from a website, server, or other remote source
  • coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio, and microwave are all included in the definition of media.
  • magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVD), floppy disks, and Blu-ray disks. Disks usually reproduce data magnetically, while optical disks use lasers to optically reproduce data. . Combinations of the above content should also be included in the scope of computer-readable media.
  • the program can be stored in a computer-readable storage medium.
  • the storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.

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 Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed in the present invention is a B/S architecture-based page buffering method, comprising: storing a page accessed by a browser into a dom as a buffered page node, and storing pages to be buffered into a localStorage of the browser, wherein the quantity of said pages exceeds a quantity threshold; in response to receiving a page switching request and determining that a page to be switched to is not buffered, updating as the page to be switched to and determining whether the remaining space of the localStorage is sufficient; in response to determining that the remaining space of the localStorage is insufficient, computing a weight value of each page according to a weight coefficient and the number of user accesses of each page, and adjusting a list of buffered pages according to the weight value; and deleting the buffered page having the lowest weight value in the list of buffered pages, and updating, according to the list of buffered pages, the buffered page node in the dom and the data of the pages in the localStoarage. Also disclosed in the present invention are an apparatus, a device, and a medium. The present invention can retain key dom nodes when storage space of a localStorage is insufficient, thus improving system smoothness and a user experience effect.

Description

一种基于B/S架构的页面缓存的方法、装置、设备和介质A method, device, equipment and medium for page caching based on B/S architecture
本申请要求于2020年06月05日提交中国国家知识产权局,申请号为202010505240.2,发明名称为“一种基于B/S架构的页面缓存的方法、装置、设备和介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires that it be submitted to the State Intellectual Property Office of China on June 5, 2020, the application number is 202010505240.2, and the invention title is "A method, device, device and medium for page caching based on B/S architecture" for a Chinese patent application Priority, the entire content of which is incorporated in this application by reference.
技术领域Technical field
本发明涉及通信技术领领域,更具体地,特别是指一种基于B/S架构的页面缓存的方法、装置、设备和介质。The present invention relates to the field of communication technology, and more specifically, to a method, device, device and medium for page caching based on a B/S architecture.
背景技术Background technique
B/S(Browser/Server,浏览器/服务器模式)结构利用不断成熟的web(网络)浏览器技术,实现原来需要专用软件才能实现的强大功能,节约了开发成本。随着B/S结构的使用越来越多,特别是需求推动了AJAX(Async Javascript And XML,交互式网页应用开发技术)技术的发展,它的程序也能在客户端电脑上进行部分处理,从而减轻了服务器的负担。但是随着越来越多的前后端交互请求,用户每次点击不同页面都要进行数据更新,尤其是数据量较大的情况下,有可能造成数据显示不及时,用户体验效果不佳。对于此类性能问题,目前较为流行的方法是web前端本地存储,通过本地保存后端数据,减少交互次数,主要存储方式有cookies、sessionStorage、localStorage、webSQL等。cookies由于存在于前后端的http请求中,而且大小仅为4k,sessionStorage在浏览器页面会话期间可用,会 话结束就被删除,因此均不适合持久化存储后端数据。localStorage是永久存储,浏览器关闭后重新打开仍然数据存在,但是为了确保本地数据与服务端数据的一致性,一般需要借助于websocket通信,后端数据变更后向前端发送通知,web端更新本地数据。但是localStorage也有容量上限,一般浏览器默认4M,对于一些大量数据的频繁访问,很有可能导致本地存储空间不够。还有一种较为流行的方法是本地dom(Document Object Model,文件对象模型)缓存页面,即将访问过的页面dom节点保存在dom中,切换页面以后,如果存在缓存下的页面则直接读取缓存dom,这种方式带来的效果就是页面的闪现,速度快,无延迟。但是dom中一般缓存的页面dom节点比较少(一般不会超过5个节点,超过的话后续访问的页面要替换之前缓存的页面),否则会导致dom的冗余,导致加载dom等操作有压力,所以缓存的页面个数有限。The B/S (Browser/Server, browser/server model) structure uses the increasingly mature web (network) browser technology to realize powerful functions that originally required special software to achieve, and save development costs. With the increasing use of B/S structure, especially the demand to promote the development of AJAX (Async Javascript And XML, interactive web application development technology) technology, its programs can also be partially processed on the client computer. Thereby reducing the burden on the server. However, with more and more front-end and back-end interaction requests, users have to update data every time they click on a different page, especially when the amount of data is large, it may cause the data to be displayed untimely and the user experience is not good. For this type of performance problem, the current popular method is to store the web front-end locally, which saves back-end data locally to reduce the number of interactions. The main storage methods are cookies, sessionStorage, localStorage, webSQL, etc. Cookies exist in the front and back http requests, and the size is only 4k, sessionStorage is available during the browser page session, and is deleted at the end of the session, so they are not suitable for persistent storage of back-end data. LocalStorage is permanent storage. The data still exists after the browser is closed and reopened. However, in order to ensure the consistency of local data and server-side data, websocket communication is generally needed. After the back-end data is changed, a notification is sent to the front-end, and the web-side updates the local data. . However, localStorage also has an upper capacity limit. Generally, browsers default to 4M. Frequent access to some large amounts of data may cause insufficient local storage space. Another popular method is to cache pages in the local dom (Document Object Model, file object model). The dom nodes of the visited pages are stored in the dom. After the page is switched, if there is a page in the cache, the cache dom is directly read. , The effect of this method is that the page flashes quickly, without delay. However, there are generally fewer dom nodes in the page cached in the dom (generally no more than 5 nodes, if the number of nodes is exceeded, the subsequent pages to be accessed will replace the previously cached page), otherwise it will cause the redundancy of the dom and cause the pressure of operations such as loading the dom. Therefore, the number of cached pages is limited.
发明内容Summary of the invention
有鉴于此,本发明实施例的目的在于提供一种基于B/S架构的页面缓存方法,localStorage保存dom节点,当超出本地大小限制,利用神经网络相关算法动态调整,更新dom节点,最大限度的发挥前端本地存储的优势,改善用户体验。In view of this, the purpose of the embodiments of the present invention is to provide a page caching method based on the B/S architecture. LocalStorage saves the dom node. When the local size limit is exceeded, the neural network-related algorithm is used to dynamically adjust and update the dom node to maximize Leverage the advantages of front-end local storage to improve user experience.
基于上述目的,本发明一方面提供了一种基于B/S架构的页面缓存的方法,该方法包括:Based on the foregoing objectives, one aspect of the present invention provides a method for page caching based on a B/S architecture, which includes:
将浏览器访问过的页面保存在dom中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于浏览器的localStorage(局部存储器)中;Save the pages visited by the browser in the dom as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the browser's localStorage (local storage);
响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为待切换到的页面并判断localStorage的剩余空间是否充足;In response to receiving a request to switch pages and determining that the page to be switched to is not cached, update to the page to be switched to and determine whether the remaining space of localStorage is sufficient;
响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的权重系数和用户访问次数计算每个页面的权重值,根据权重值调整缓存页面列表;In response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page, the weight coefficient of each page and the number of user visits, and adjust the cached page list according to the weight value;
删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据。Delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in localStorage according to the cache page list.
在本发明的基于B/S架构的页面缓存的方法的一些实施方式中,方法还包括:In some embodiments of the method for page caching based on the B/S architecture of the present invention, the method further includes:
响应于接收到切换页面的请求且判断待切换到的页面已经被缓存,从dom中或localStorage中读取待切换到的页面。In response to receiving the request to switch the page and determining that the page to be switched to has been cached, the page to be switched to is read from the dom or localStorage.
在本发明的基于B/S架构的页面缓存的方法的一些实施方式中,更新为待切换到的页面包括:向服务端发送页面的访问请求,以及响应于服务端返回数据,根据返回的数据更新页面;In some embodiments of the method for page caching based on the B/S architecture of the present invention, updating the page to be switched to includes: sending a page access request to the server, and responding to the server returning data, according to the returned data Update page
本发明的方法还包括:响应于判断localStorage的剩余空间充足,保存待切换到的页面并更新缓存页面列表。The method of the present invention also includes: in response to judging that the remaining space of the localStorage is sufficient, saving the page to be switched to and updating the cached page list.
在本发明的基于B/S架构的页面缓存的方法的一些实施方式中,响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的用户访问次数计算每个页面的权重值,并根据权重值调整缓存页面列表包括:In some embodiments of the page caching method based on the B/S architecture of the present invention, in response to determining that the remaining space of localStorage is insufficient, the weight of each page is calculated according to the weight coefficient of each page and the number of user visits of each page Value, and adjust the cached page list according to the weight value, including:
根据访问数据的变化为每个页面分配权重系数,将页面的权重系数与页面的用户访问次数相乘得到页面的权重值,以及根据权重值的大小更新缓存页面列表。A weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
在本发明的基于B/S架构的页面缓存的方法的一些实施方式中,删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据包括:In some embodiments of the method for page caching based on the B/S architecture of the present invention, the cache page with the lowest weight value in the cache page list is deleted, and the page nodes cached in the dom and the pages in localStorage are updated according to the cache page list. The data includes:
移除缓存页面列表中权重值最低的页面,并根据dom的页面节点的数量阈值向dom中存入缓存页面列表中权重值最大的若干页面,并将缓存页面列表中其余的页面存入localStorage中。Remove the page with the lowest weight value in the cache page list, and save the pages with the largest weight value in the cache page list to the dom according to the threshold of the number of page nodes of the dom, and store the remaining pages in the cache page list into localStorage .
本发明实施例的另一方面,还提供了一种基于B/S架构的页面缓存的装置,该装置包括:In another aspect of the embodiments of the present invention, there is also provided a device for page caching based on a B/S architecture, the device including:
页面缓存模块,页面缓存模块配置为将浏览器访问过的页面保存在dom中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于浏览器的localStorage中;Page caching module, the page caching module is configured to save the pages visited by the browser in the dom as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the browser's localStorage;
页面更新模块,页面更新模块配置为响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为待切换到的页面并判断localStorage的剩余空间是否充足;Page update module, the page update module is configured to respond to receiving a page switching request and determine that the page to be switched to is not cached, update the page to be switched to, and determine whether the remaining space of localStorage is sufficient;
权重计算模块,权重计算模块配置为响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的用户访问次数计算每个页面的权重值,并根据权重值调整缓存页面列表;Weight calculation module, the weight calculation module is configured to, in response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjust the cache page list according to the weight value;
列表更新模块,列表更新模块配置为删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据。The list update module is configured to delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
在本发明的基于B/S架构的页面缓存的装置的一些实施方式中,装置还包括:In some embodiments of the device for page caching based on the B/S architecture of the present invention, the device further includes:
缓存读取模块,缓存读取模块配置为响应于接收到切换页面的请求且判断待切换到的页面已经被缓存,从dom中或localStorage中读取待切换到的页面。The cache reading module is configured to read the page to be switched from dom or localStorage in response to receiving the request to switch the page and judging that the page to be switched to has been cached.
在本发明的基于B/S架构的页面缓存的装置的一些实施方式中,权重计算模块还配置为:In some embodiments of the device for page caching based on the B/S architecture of the present invention, the weight calculation module is further configured to:
根据访问数据的变化为每个页面分配权重系数,将页面的权重系数与页面的用户访问次数相乘得到页面的权重值,以及根据权重值的大小更新缓存页面列表。A weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
本发明实施例的另一方面,还提供了一种计算机设备,该计算机设备包括:In another aspect of the embodiments of the present invention, there is also provided a computer device, which includes:
至少一个处理器;以及At least one processor; and
存储器,存储器存储有可在处理器上运行的计算机程序,处理器执行程序时执行前述的基于B/S架构的页面缓存的方法。The memory stores a computer program that can run on the processor, and the processor executes the aforementioned page caching method based on the B/S architecture when the processor executes the program.
本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,其特征在于,计算机程序被处理器执行时执行前述的基于B/S架构的页面缓存的方法。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, and the computer-readable storage medium stores a computer program, wherein the computer program executes the aforementioned B/S architecture-based The method of page caching.
本发明至少具有以下有益技术效果:本发明采用localstorage存储dom的网页节点,通过服务端对各个页面的统计实时更新各页面优先级,在localstorage存储空间不够情况下保留关键dom节点,最大限度的发挥前端本地存储的优势,提升系统流畅性和用户体验效果。The present invention has at least the following beneficial technical effects: the present invention uses localstorage to store dom webpage nodes, updates the priority of each page in real time through server statistics on each page, and retains key dom nodes when the localstorage storage space is insufficient, to maximize performance The advantage of front-end local storage improves system fluency and user experience.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can be obtained based on the drawings without creative work.
图1示出了根据本发明的基于B/S架构的页面缓存的方法的实施例的示意性框图;Fig. 1 shows a schematic block diagram of an embodiment of a method for page caching based on a B/S architecture according to the present invention;
图2示出了根据本发明的基于B/S架构的页面缓存的方法的实施例的流程图;Figure 2 shows a flowchart of an embodiment of a method for page caching based on a B/S architecture according to the present invention;
图3示出了根据本发明的基于B/S架构的页面缓存的装置的实施例的示意性框图;Fig. 3 shows a schematic block diagram of an embodiment of an apparatus for page caching based on a B/S architecture according to the present invention;
图4示出了根据本发明的基于B/S架构的页面缓存的方法的计算机设备的实施例的示意性框图;FIG. 4 shows a schematic block diagram of an embodiment of a computer device according to the method for page caching based on the B/S architecture of the present invention;
图5示出了根据本发明的基于B/S架构的页面缓存的方法的计算机可读存储介质的实施例的示意性框图。Fig. 5 shows a schematic block diagram of an embodiment of a computer-readable storage medium of a method for page caching based on a B/S architecture according to the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following describes the embodiments of the present invention in detail in conjunction with specific embodiments and with reference to the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”和“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all the expressions "first" and "second" in the embodiments of the present invention are used to distinguish two entities with the same name but not the same or parameters that are not the same, as shown in "first" and "second". "It is only for the convenience of presentation, and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe this one by one.
基于上述目的,本发明实施例的第一个方面,提出了一种基于B/S架构的页面缓存的方法的实施例。图1示出的是根据本发明的基于B/S架构的页面缓存的方法的实施例的示意性框图。如图1所示的实施例中,该方法至少包括如下步骤:Based on the foregoing objective, the first aspect of the embodiments of the present invention proposes an embodiment of a method for page caching based on a B/S architecture. Fig. 1 shows a schematic block diagram of an embodiment of a method for page caching based on a B/S architecture according to the present invention. In the embodiment shown in Fig. 1, the method at least includes the following steps:
S100、将浏览器访问过的页面保存在dom中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于浏览器的localStorage中;S100. Save the pages visited by the browser in the dom as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the browser's localStorage;
S200、响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为待切换到的页面并判断localStorage的剩余空间是否充足;S200. In response to receiving the request to switch the page and determining that the page to be switched to is not cached, update to the page to be switched to and determine whether the remaining space of the localStorage is sufficient;
S300、响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的用户访问次数计算每个页面的权重值,根据权重值调整缓存页面列表;S300. In response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjust the cached page list according to the weight value;
S400、删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据。S400: Delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
在本发明的一些实施例中,dom树中允许最多缓存5个dom页面节点,即数量阈值为5个,超出5个的需要缓存的页面节点保存于localStorage,如果localStorage保存的数据大小达到上限,则引入神经网络相关算法动态调整dom的网页节点,每个页面分配一个权重系数,权重系数会随着用户访问数据的变化动态调整,该权重系数与用户访问次数相乘得到该页面的权重值,根据权重值的大小移除重要系数最低的dom节点,更新缓存页面列表。权重值最大的5个直接存入dom中,其余的存入localStorage。服务端监控到数据变化,通过web socket(基于TCP的全双工通信协议)通信通知web端,更新缓存下的dom的网页节点中的数据。在客户端存储空间有限的前提下,尽可能保存用户关心的页面,同时根据算法调整实时更新各个页面缓存的顺序,最大限度的改善用户访问系统的体验效果。In some embodiments of the present invention, a maximum of 5 dom page nodes are allowed to be cached in the dom tree, that is, the number threshold is 5, and page nodes that need to be cached beyond 5 are stored in localStorage. If the size of data stored in localStorage reaches the upper limit, Then the neural network-related algorithm is introduced to dynamically adjust the dom's web page nodes, and each page is assigned a weight coefficient. The weight coefficient will be dynamically adjusted as the user access data changes. The weight coefficient is multiplied by the number of user visits to obtain the weight value of the page. According to the weight value, the dom node with the lowest important coefficient is removed, and the cache page list is updated. The 5 with the largest weight value are directly stored in dom, and the rest are stored in localStorage. The server monitors the data changes, and informs the web through websocket (full-duplex communication protocol based on TCP) communication to update the data in the web page node of the dom in the cache. On the premise of limited client storage space, save the pages that users care about as much as possible, and adjust the order of real-time update of the cache of each page according to the algorithm, so as to maximize the user experience of accessing the system.
图2示出了根据本发明的基于B/S架构的页面缓存的方法的实施例的流程图。如图2所示,具体实施过程如下:Fig. 2 shows a flowchart of an embodiment of a method for page caching based on a B/S architecture according to the present invention. As shown in Figure 2, the specific implementation process is as follows:
用户访问系统切换页面,判断该页面是否缓存,同时发送该页面访问请求到服务端;The user accesses the system to switch the page, determines whether the page is cached, and sends the page access request to the server at the same time;
如果没有缓存,直接向服务端发送本次的页面访问请求,服务端返回数据成功以后,更新页面;If there is no cache, send this page access request directly to the server, and after the server returns the data successfully, update the page;
判断当前本地存储空间是否已满,即判断dom和localStorage是否都已存满达到上限;Determine whether the current local storage space is full, that is, whether the dom and localStorage are both full and reach the upper limit;
如果本地存储空间不足,则执行动态调整算法,得到各个页面的权重值并根据各个页面权重值的比较结果更新页面及缓存页面列表;If the local storage space is insufficient, the dynamic adjustment algorithm is executed to obtain the weight value of each page, and the page and the cached page list are updated according to the comparison result of the weight value of each page;
客户端通过web socket服务监听后端数据变更,当后端数据变化时会向前端推送消息,客户端会查询相关模块数据,将数据更新到本地缓存dom节点中。The client monitors back-end data changes through the websocket service. When the back-end data changes, it will push a message to the front-end. The client will query related module data and update the data to the local cache dom node.
根据本发明的基于B/S架构的页面缓存的方法的一些实施方式,方法还包括:According to some embodiments of the method for page caching based on the B/S architecture of the present invention, the method further includes:
响应于接收到切换页面的请求且判断待切换到的页面已经被缓存,从dom中或localStorage中读取页面。In response to receiving the request to switch the page and determining that the page to be switched to has been cached, the page is read from the dom or localStorage.
在本发明的一些实施例中,用户访问系统切换页面,判断该页面是否缓存,同时发送该页面访问请求到服务端;如果已经缓存,则直接从dom中或者localStorage中读取缓存dom,更新页面。In some embodiments of the present invention, the user accesses the system to switch the page, determines whether the page is cached, and sends the page access request to the server at the same time; if it has been cached, the cached dom is directly read from the dom or localStorage, and the page is updated. .
根据本发明的基于B/S架构的页面缓存的方法的一些实施方式,更新为待切换到的页面还包括:向服务端发送页面的访问请求,响应于服务端成功返回数据,根据返回的数据更新页面;According to some embodiments of the method for page caching based on the B/S architecture of the present invention, updating to the page to be switched to further includes: sending a page access request to the server, and responding to the server successfully returning data, according to the returned data Update page
方法还包括:响应于判断localStorage的剩余空间充足,保存页面并更新缓存页面列表。The method also includes: in response to determining that the remaining space of the localStorage is sufficient, saving the page and updating the cached page list.
在本发明的一些实施例中,如果没有缓存,直接向服务端发送本次页面访问请求,服务端返回数据成功以后,更新页面;如果当前本地存储空间未存满,还可以保存最新的请求页面,则保存该页面,并更新缓存页面列表。In some embodiments of the present invention, if there is no cache, this page access request is sent directly to the server. After the server returns the data successfully, the page is updated; if the current local storage space is not full, the latest requested page can also be saved , The page is saved and the list of cached pages is updated.
根据本发明的基于B/S架构的页面缓存的方法的一些实施方式,响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的用户访问次数计算每个页面的权重值,根据权重值调整缓存页面列表还 包括:According to some embodiments of the method for page caching based on the B/S architecture of the present invention, in response to judging that the remaining space of localStorage is insufficient, the weight value of each page is calculated according to the weight coefficient of each page and the number of user visits of each page , Adjusting the list of cached pages according to the weight value also includes:
根据访问数据的变化为每个页面分配权重系数,将页面的权重系数与页面的用户访问次数相乘得到页面的权重值,以及根据权重值的大小更新缓存页面列表。A weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
在本发明的一些实施例中,初始化各个页面的权重系数a1,a2,…,an,且另a1=a2=…=an,a1+a2+…+an<1,设置权重系数阈值A<1,递增系数c<1;In some embodiments of the present invention, the weight coefficients a1, a2,...,an of each page are initialized, and a1=a2=...=an, a1+a2+...+an<1, the weight coefficient threshold A<1, Increasing coefficient c<1;
根据用户每次下发的切换页面的消息,更新各页面访问次数b1,b2,…,bn;Update the number of page visits b1, b2,..., bn according to the page switching message sent by the user each time;
计算各个页面权重值a1b1,a2b2,…,anbn,并按照a1b1>a2b2>…>anbn进行排序;Calculate the weight values a1b1, a2b2,..., anbn of each page, and sort them according to a1b1>a2b2>...>anbn;
根据排序结果由大到小调整为新的a1,a2,…,an,将最大的a1修改为a1=a1+c;且保证a1+c<=A,a1+c+a2+…+an<=1;According to the sorting result, adjust from large to small to new a1, a2,..., an, modify the largest a1 to a1=a1+c; and ensure that a1+c<=A, a1+c+a2+…+an<= 1;
根据本发明的基于B/S架构的页面缓存的方法的一些实施方式,删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据还包括:According to some embodiments of the method for page caching based on the B/S architecture of the present invention, the cached page with the lowest weight value in the cached page list is deleted, and the data of the page node cached in the dom and the page in localStorage is updated according to the cached page list Also includes:
移除缓存页面列表中权重值最低的页面,根据dom的页面节点的数量阈值向dom中存入缓存页面列表中权重值最大的若干页面,将缓存页面列表中其余的页面存入localStorage中。Remove the page with the lowest weight value in the cache page list, store the pages with the largest weight value in the cache page list into the dom according to the threshold of the number of page nodes of the dom, and store the remaining pages in the cache page list in localStorage.
在本发明的一些实施例中,通过web socket通信将页面权重值比较结果发送给web客户端,web客户端根据排序将权重值最高的5项直接更新到dom缓存中,移除权重值最低的页面,其余的保存到localStorage中;In some embodiments of the present invention, the page weight value comparison result is sent to the web client through web socket communication, and the web client directly updates the 5 items with the highest weight value to the dom cache according to the ranking, and removes the one with the lowest weight value. Page, save the rest to localStorage;
本发明实施例的另一方面,提出了一种基于B/S架构的页面缓存的装置的实施例。图3示出了根据本发明的基于B/S架构的页面缓存的装置的 实施例的示意性框图;如图3所示,该装置包括:In another aspect of the embodiments of the present invention, an embodiment of an apparatus for page caching based on a B/S architecture is provided. Fig. 3 shows a schematic block diagram of an embodiment of a device for page caching based on a B/S architecture according to the present invention; as shown in Fig. 3, the device includes:
页面缓存模块10,页面缓存模块10配置为将浏览器访问过的页面保存在dom中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于浏览器的localStorage中; Page caching module 10, which is configured to save pages visited by the browser in dom as cached page nodes, and save pages that exceed the number threshold that need to be cached in the browser’s localStorage;
页面更新模块20,页面更新模块20配置为响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为待切换到的页面并判断localStorage的剩余空间是否充足;A page update module 20, which is configured to respond to receiving a page switching request and determine that the page to be switched to is not cached, update the page to be switched to, and determine whether the remaining space of the localStorage is sufficient;
权重计算模块30,权重计算模块30配置为响应于判断localStorage的剩余空间不足,根据每个页面的权重系数和每个页面的用户访问次数计算每个页面的权重值,根据权重值调整缓存页面列表;The weight calculation module 30 is configured to, in response to judging that the remaining space of localStorage is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjust the cache page list according to the weight value ;
列表更新模块40,列表更新模块40配置为删除缓存页面列表中权重值最低的缓存页面,并根据缓存页面列表更新dom中缓存的页面节点和localStorage中的页面的数据。The list update module 40 is configured to delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the dom and the page in the localStorage according to the cache page list.
根据本发明的基于B/S架构的页面缓存的装置的一些实施方式,装置还包括:According to some embodiments of the device for page caching based on the B/S architecture of the present invention, the device further includes:
缓存读取模块50,缓存读取模块50配置为响应于接收到切换页面的请求且判断待切换到的页面已经被缓存,从dom中或localStorage中读取页面。The cache reading module 50 is configured to read the page from the dom or localStorage in response to receiving the request for switching the page and determining that the page to be switched to has been cached.
根据本发明的基于B/S架构的页面缓存的装置的一些实施方式,权重计算模块还配置为:According to some embodiments of the device for page caching based on the B/S architecture of the present invention, the weight calculation module is further configured to:
根据访问数据的变化为每个页面分配权重系数,将页面的权重系数与页面的用户访问次数相乘得到页面的权重值,以及根据权重值的大小更新缓存页面列表。A weight coefficient is assigned to each page according to the change of the access data, the weight coefficient of the page is multiplied by the number of user visits of the page to obtain the weight value of the page, and the cached page list is updated according to the size of the weight value.
基于上述目的,本发明实施例的另一方面,还提出了一种计算机设备,具体的,图4示出了根据本发明的基于B/S架构的页面缓存的方法的计算 机设备的实施例的示意性框图。如图4所示,该计算机设备包括:至少一个处理器520;以及存储器510,存储器510存储有可在处理器520上运行的计算机程序511,处理器510执行程序时执行前述的基于B/S架构的页面缓存的方法。Based on the foregoing objectives, another aspect of the embodiments of the present invention also proposes a computer device. Specifically, FIG. 4 shows an embodiment of the computer device according to the method for page caching based on the B/S architecture of the present invention. Schematic block diagram. As shown in FIG. 4, the computer device includes: at least one processor 520; and a memory 510. The memory 510 stores a computer program 511 that can run on the processor 520. Architectural page caching method.
本发明实施例的再一方面,还提供了一种计算机可读存储介质,具体的,图5示出了根据本发明的基于B/S架构的页面缓存的方法的计算机可读存储介质的实施例的示意性框图。如图5所示,计算机可读存储介质601存储有计算机程序610,计算机程序610被处理器执行时执行前述的基于B/S架构的页面缓存的方法。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided. Specifically, FIG. 5 shows an implementation of the computer-readable storage medium according to the method for page caching based on the B/S architecture of the present invention Schematic block diagram of the example. As shown in FIG. 5, the computer-readable storage medium 601 stores a computer program 610, and when the computer program 610 is executed by a processor, the aforementioned page caching method based on the B/S architecture is executed.
同样地,本领域技术人员应当理解,以上针对根据本发明的基于B/S架构的页面缓存的方法阐述的所有实施方式、特征和优势同样地适用于根据本发明的装置、计算机设备和介质。为了本公开的简洁起见,在此不再重复阐述。Likewise, those skilled in the art should understand that all the embodiments, features and advantages described above for the method for page caching based on the B/S architecture according to the present invention are equally applicable to the apparatus, computer equipment and media according to the present invention. For the sake of brevity of the present disclosure, the description will not be repeated here.
需要特别指出的是,上述基于B/S架构的页面缓存的方法、装置、设备和介质的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于基于B/S架构的页面缓存的方法、装置、设备和介质也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be particularly pointed out that the steps in the various embodiments of the above-mentioned B/S-based page caching method, device, device, and medium can be crossed, replaced, added, or deleted. Therefore, these reasonable permutations and combinations The method, device, device, and medium that are converted to page caching based on the B/S architecture should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,基于B/S架构的页面缓存的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through computer programs. The programs based on the page caching method based on the B/S architecture can be stored. In a computer readable storage medium, when the program is executed, it may include the processes of the above-mentioned method embodiments. Among them, the storage medium of the program can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc. The foregoing computer program embodiment can achieve the same or similar effects as any of the foregoing corresponding method embodiments.
此外,根据本发明实施例公开的方法还可以被实现为由处理器执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被处理器执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the method disclosed according to the embodiment of the present invention may also be implemented as a computer program executed by a processor, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the processor, it executes the above-mentioned functions defined in the method disclosed in the embodiment of the present invention.
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上述步骤或单元功能的计算机程序的计算机可读存储介质实现。In addition, the above method steps and system units can also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
此外,应该明白的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。作为例子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)或快闪存储器。易失性存储器可以包括随机存取存储器(RAM),该RAM可以充当外部高速缓存存储器。作为例子而非限制性的,RAM可以以多种形式获得,比如同步RAM(DRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据速率SDRAM(DDRSDRAM)、增强SDRAM(ESDRAM)、同步链路DRAM(SLDRAM)、以及直接Rambus RAM(DRRAM)。所公开的方面的存储设备意在包括但不限于这些和其它合适类型的存储器。In addition, it should be understood that the computer-readable storage medium (eg, memory) herein may be volatile memory or non-volatile memory, or may include both volatile memory and non-volatile memory. By way of example and not limitation, non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory Memory. Volatile memory can include random access memory (RAM), which can act as external cache memory. As an example and not limitation, RAM can be obtained in many forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those skilled in the art will also understand that the various exemplary logic blocks, modules, circuits, and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. In order to clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and functions have been described in general terms. Whether this function is implemented as software or hardware depends on the specific application and the design constraints imposed on the entire system. Those skilled in the art can implement the functions in various ways for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the disclosure of the embodiments of the present invention.
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行这里功能的下列部件来实现或执行:通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或其它可编程逻辑器件、分立门或晶体管逻辑、分立的硬件组件或者这些部件的任何组合。通用处理器可以是微处理器,但是可替换地,处理器可以是任何传统处理器、控制器、微控制器或状态机。处理器也可以被实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、一个或多个微处理器结合DSP和/或任何其它这种配置。The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein can be implemented or executed using the following components designed to perform the functions herein: general-purpose processors, digital signal processors (DSP), and application-specific integrated circuits (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general-purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in combination with a DSP, and/or any other such configuration.
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的软件模块中或这两者的组合中。软件模块可以驻留在RAM存储器、快闪存储器、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动盘、CD-ROM(紧凑型光盘只读存储器)、或本领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器,使得处理器能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中,存储介质可以与处理器集成在一起。处理器和存储介质可以驻留在ASIC中。ASIC可以驻留在用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。The steps of the method or algorithm described in combination with the disclosure herein may be directly included in hardware, a software module executed by a processor, or a combination of the two. The software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disks, removable disks, CD-ROM (Compact Disc Read Only Memory), or any other known in the art Form of storage media. An exemplary storage medium is coupled to the processor such that the processor can read information from or write information to the storage medium. In an alternative, the storage medium may be integrated with the processor. The processor and the storage medium may reside in the ASIC. The ASIC can reside in the user terminal. In an alternative, the processor and the storage medium may reside as discrete components in the user terminal.
在一个或多个示例性设计中,功能可以在硬件、软件、固件或其任意组合中实现。如果在软件中实现,则可以将功能作为一个或多个指令或代码存储在计算机可读介质上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质,该通信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的,该计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储设备、磁盘存储设备或其它磁性存储设备,或者是可以用于携带或存储形式为指 令或数据结构的所需程序代码并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外,任何连接都可以适当地称为计算机可读介质。例如,如果使用同轴线缆、光纤线缆、双绞线、数字用户线路(DSL)或诸如红外线、无线电和微波的无线技术来从网站、服务器或其它远程源发送软件,则上述同轴线缆、光纤线缆、双绞线、DSL或诸如红外线、无线电和微波的无线技术均包括在介质的定义。如这里所使用的,磁盘和光盘包括压缩盘(CD)、激光盘、光盘、数字多功能盘(DVD)、软盘、蓝光盘,其中磁盘通常磁性地再现数据,而光盘利用激光光学地再现数据。上述内容的组合也应当包括在计算机可读介质的范围内。In one or more exemplary designs, functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted through the computer-readable medium. Computer-readable media include computer storage media and communication media, including any media that facilitates the transfer of a computer program from one location to another location. A storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer. By way of example and not limitation, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or may be used to carry or store instructions in the form of Or any other medium that can be accessed by a general-purpose or special-purpose computer or general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if you use coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave to send software from a website, server, or other remote source, the above-mentioned coaxial cable Cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio, and microwave are all included in the definition of media. As used herein, magnetic disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVD), floppy disks, and Blu-ray disks. Disks usually reproduce data magnetically, while optical disks use lasers to optically reproduce data. . Combinations of the above content should also be included in the scope of computer-readable media.
以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are exemplary embodiments disclosed by the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosure of the embodiments of the present invention as defined by the claims. The functions, steps, and/or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any specific order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual forms, they may also be understood as plural unless clearly limited to a singular number.
应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, unless the context clearly supports exceptions, the singular form "a" is intended to also include the plural form. It should also be understood that "and/or" as used herein refers to any and all possible combinations including one or more items listed in association.
上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the disclosed embodiments of the foregoing embodiments of the present invention are only for description, and do not represent the superiority or inferiority of the embodiments.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the foregoing embodiments can be implemented by hardware, or by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk or an optical disk, etc.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例 性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is only exemplary, and is not intended to imply that the scope of disclosure (including the claims) of the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention The above embodiments or the technical features in different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in the details for the sake of brevity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种基于B/S架构的页面缓存的方法,其特征在于,所述方法包括:A method for page caching based on B/S architecture, characterized in that the method includes:
    将浏览器访问过的页面保存在文件对象模型中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于所述浏览器的局部存储器中;Save the pages visited by the browser in the file object model as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the local memory of the browser;
    响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为所述待切换到的页面并判断所述局部存储器的剩余空间是否充足;In response to receiving a page switching request and determining that the page to be switched to is not cached, updating to the page to be switched to and determining whether the remaining space of the local memory is sufficient;
    响应于判断所述局部存储器的剩余空间不足,根据每个所述页面的权重系数和每个所述页面的用户访问次数计算每个页面的权重值,并根据所述权重值调整缓存页面列表;In response to determining that the remaining space of the local memory is insufficient, calculating a weight value of each page according to the weight coefficient of each page and the number of user visits of each page, and adjusting the cache page list according to the weight value;
    删除所述缓存页面列表中所述权重值最低的缓存页面,并根据所述缓存页面列表更新所述文件对象模型中缓存的所述页面节点和所述局部存储器中的页面的数据。Delete the cache page with the lowest weight value in the cache page list, and update the data of the page node cached in the file object model and the page in the local memory according to the cache page list.
  2. 根据权利要求1所述的基于B/S架构的页面缓存的方法,其特征在于,所述方法还包括:The method for page caching based on the B/S architecture of claim 1, wherein the method further comprises:
    响应于接收到切换页面的请求且判断所述待切换到的页面已经被缓存,从所述文件对象模型中或所述局部存储器中读取所述待切换到的页面。In response to receiving the page switching request and determining that the page to be switched to has been cached, the page to be switched to is read from the file object model or the local memory.
  3. 根据权利要求1所述的基于B/S架构的页面缓存的方法,其特征在于,更新为所述待切换到的页面包括:向服务端发送页面的访问请求,以及响应于所述服务端返回数据,根据返回的所述数据更新所述页面;The method for page caching based on the B/S architecture of claim 1, wherein updating to the page to be switched to comprises: sending a page access request to the server, and responding to the server returning Data, update the page according to the returned data;
    所述方法还包括:响应于判断所述局部存储器的剩余空间充足,保存所述待切换到的页面并更新所述缓存页面列表。The method further includes: in response to determining that the remaining space of the local memory is sufficient, saving the page to be switched to and updating the cached page list.
  4. 根据权利要求1所述的基于B/S架构的页面缓存的方法,其特征在于,所述响应于判断所述局部存储器的剩余空间不足,根据每个所述页面的权重系数和每个所述页面的用户访问次数计算每个页面的权重值,并根据所述权 重值调整缓存页面列表包括:The method for page caching based on the B/S architecture according to claim 1, wherein in response to determining that the remaining space of the local memory is insufficient, according to the weight coefficient of each of the pages and each of the The number of user visits to the page to calculate the weight value of each page, and to adjust the cached page list according to the weight value includes:
    根据访问数据的变化为每个所述页面分配权重系数,将所述页面的所述权重系数与所述页面的用户访问次数相乘得到所述页面的所述权重值,以及根据所述权重值的大小更新所述缓存页面列表。Assign a weight coefficient to each of the pages according to changes in access data, multiply the weight coefficient of the page and the number of user visits of the page to obtain the weight value of the page, and according to the weight value The size of updates the cached page list.
  5. 根据权利要求1所述的基于B/S架构的页面缓存的方法,其特征在于,所述删除所述缓存页面列表中所述权重值最低的缓存页面,并根据所述缓存页面列表更新所述文件对象模型中缓存的所述页面节点和所述局部存储器中的页面的数据包括:The method for page caching based on the B/S architecture according to claim 1, wherein said deleting the cached page with the lowest weight value in the cached page list, and updating the cached page list according to the cached page list. The data of the page node and the page in the local memory cached in the file object model include:
    移除所述缓存页面列表中所述权重值最低的页面,并根据所述文件对象模型的所述页面节点的所述数量阈值向所述文件对象模型中存入所述缓存页面列表中所述权重值最大的若干页面,并将所述缓存页面列表中其余的页面存入所述局部存储器中。Remove the page with the lowest weight value in the cache page list, and store the page in the cache page list in the file object model according to the number threshold of the page nodes of the file object model And store the remaining pages in the cached page list into the local memory for several pages with the largest weight value.
  6. 一种基于B/S架构的页面缓存的装置,其特征在于,所述装置包括:A device for page caching based on B/S architecture, characterized in that the device includes:
    页面缓存模块,所述页面缓存模块配置为将浏览器访问过的页面保存在文件对象模型中作为缓存的页面节点,并将超出数量阈值的需要被缓存的页面保存于所述浏览器的局部存储器中;The page caching module is configured to save the pages visited by the browser in the file object model as cached page nodes, and save the pages that need to be cached that exceed the number threshold in the local memory of the browser middle;
    页面更新模块,所述页面更新模块配置为响应于接收到切换页面的请求且判断待切换到的页面未被缓存,更新为所述待切换到的页面并判断所述局部存储器的剩余空间是否充足;A page update module configured to, in response to receiving a page switching request and determining that the page to be switched to is not cached, update to the page to be switched to and determine whether the remaining space of the local memory is sufficient ;
    权重计算模块,所述权重计算模块配置为响应于判断所述局部存储器的剩余空间不足,根据每个所述页面的权重系数和每个所述页面的用户访问次数计算每个页面的权重值,并根据所述权重值调整缓存页面列表;A weight calculation module configured to, in response to determining that the remaining space of the local memory is insufficient, calculate the weight value of each page according to the weight coefficient of each page and the number of user visits of each page, And adjust the cache page list according to the weight value;
    列表更新模块,所述列表更新模块配置为删除所述缓存页面列表中所述权重值最低的缓存页面,并根据所述缓存页面列表更新所述文件对象模型中缓存的所述页面节点和所述局部存储器中的页面的数据。The list update module is configured to delete the cache page with the lowest weight value in the cache page list, and update the page node and the page node cached in the file object model according to the cache page list The data of the page in the local memory.
  7. 根据权利要求6所述的基于B/S架构的页面缓存的装置,其特征在于,所述装置还包括:The device for page caching based on the B/S architecture of claim 6, wherein the device further comprises:
    缓存读取模块,所述缓存读取模块配置为响应于接收到切换页面的请求且判断所述待切换到的页面已经被缓存,从所述文件对象模型中或所述局部存储器中读取所述待切换到的页面。A cache reading module configured to, in response to receiving a page switching request and judging that the page to be switched to has been cached, read from the file object model or the local memory Describe the page to be switched to.
  8. 根据权利要求6所述的基于B/S架构的页面缓存的装置,其特征在于,所述权重计算模块还配置为:The device for page caching based on the B/S architecture of claim 6, wherein the weight calculation module is further configured to:
    根据访问数据的变化为每个所述页面分配权重系数,将所述页面的所述权重系数与所述页面的用户访问次数相乘得到所述页面的所述权重值,以及根据所述权重值的大小更新所述缓存页面列表。Assign a weight coefficient to each of the pages according to changes in access data, multiply the weight coefficient of the page and the number of user visits of the page to obtain the weight value of the page, and according to the weight value The size of updates the cached page list.
  9. 一种计算机设备,其特征在于,包括:A computer device, characterized in that it comprises:
    至少一个处理器;以及At least one processor; and
    存储器,所述存储器存储有可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时执行如权利要求1-5任意一项所述的方法。A memory, which stores a computer program that can run on the processor, and is characterized in that, when the processor executes the program, the method according to any one of claims 1 to 5 is executed.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时执行如权利要求1-5任意一项所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program executes the method according to any one of claims 1 to 5 when the computer program is executed by a processor.
PCT/CN2021/077441 2020-06-05 2021-02-23 B/s architecture-based page buffering method and apparatus, device, and medium WO2021244070A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010505240.2A CN111737616B (en) 2020-06-05 2020-06-05 Page caching method, device, equipment and medium based on B/S architecture
CN202010505240.2 2020-06-05

Publications (1)

Publication Number Publication Date
WO2021244070A1 true WO2021244070A1 (en) 2021-12-09

Family

ID=72648296

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/077441 WO2021244070A1 (en) 2020-06-05 2021-02-23 B/s architecture-based page buffering method and apparatus, device, and medium

Country Status (2)

Country Link
CN (1) CN111737616B (en)
WO (1) WO2021244070A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604254A (en) * 2022-12-15 2023-01-13 济南丽阳神州智能科技有限公司(Cn) Breakpoint examination continuation processing method and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111737616B (en) * 2020-06-05 2022-12-20 苏州浪潮智能科技有限公司 Page caching method, device, equipment and medium based on B/S architecture
CN113609460B (en) * 2021-06-30 2023-05-26 苏州浪潮智能科技有限公司 Page loading method and system based on user permission
CN113204726A (en) * 2021-07-07 2021-08-03 苏州浪潮智能科技有限公司 BS architecture page response time optimization method, device, equipment and medium
CN115442438B (en) * 2022-11-08 2023-03-24 深圳市华曦达科技股份有限公司 Data caching method, system and storage medium based on web browser

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032839A1 (en) * 1999-07-23 2002-03-14 Kazumichi Yamamoto Web cache memory device and browser apparatus utilizing the same
CN102821113A (en) * 2011-06-07 2012-12-12 阿里巴巴集团控股有限公司 Cache method and system
CN109471989A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of page request processing method and relevant apparatus
CN109522501A (en) * 2018-11-26 2019-03-26 腾讯科技(深圳)有限公司 Content of pages management method and its device
CN111143733A (en) * 2019-12-26 2020-05-12 北京浪潮数据技术有限公司 Local data caching method and device, electronic equipment and readable storage medium
CN111737616A (en) * 2020-06-05 2020-10-02 苏州浪潮智能科技有限公司 Page caching method, device, equipment and medium based on B/S architecture

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287432A (en) * 2019-06-28 2019-09-27 北京金山安全软件有限公司 Network information processing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020032839A1 (en) * 1999-07-23 2002-03-14 Kazumichi Yamamoto Web cache memory device and browser apparatus utilizing the same
CN102821113A (en) * 2011-06-07 2012-12-12 阿里巴巴集团控股有限公司 Cache method and system
CN109471989A (en) * 2018-11-01 2019-03-15 郑州云海信息技术有限公司 A kind of page request processing method and relevant apparatus
CN109522501A (en) * 2018-11-26 2019-03-26 腾讯科技(深圳)有限公司 Content of pages management method and its device
CN111143733A (en) * 2019-12-26 2020-05-12 北京浪潮数据技术有限公司 Local data caching method and device, electronic equipment and readable storage medium
CN111737616A (en) * 2020-06-05 2020-10-02 苏州浪潮智能科技有限公司 Page caching method, device, equipment and medium based on B/S architecture

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604254A (en) * 2022-12-15 2023-01-13 济南丽阳神州智能科技有限公司(Cn) Breakpoint examination continuation processing method and device

Also Published As

Publication number Publication date
CN111737616A (en) 2020-10-02
CN111737616B (en) 2022-12-20

Similar Documents

Publication Publication Date Title
WO2021244070A1 (en) B/s architecture-based page buffering method and apparatus, device, and medium
US11140211B2 (en) Systems and methods for caching and serving dynamic content
US9448932B2 (en) System for caching data
Rodriguez et al. Analysis of web caching architectures: Hierarchical and distributed caching
EP1546924B1 (en) Method, system, and program for maintaining data in distributed caches
US9646254B2 (en) Predicting next web pages
US8868831B2 (en) Caching data between a database server and a storage system
US7051161B2 (en) Memory admission control based on object size or request frequency
US10853193B2 (en) Database system recovery using non-volatile system memory
JP3481054B2 (en) Gateway device, client computer and distributed file system connecting them
CN1234086C (en) System and method for high speed buffer storage file information
CN109656956B (en) Method and device for realizing centralized caching of service system data
CN106528451B (en) The cloud storage frame and construction method prefetched for the L2 cache of small documents
US9594846B2 (en) Client side caching
Meizhen et al. The design and implementation of LRU-based web cache
CN105915619A (en) Access heat regarded cyber space information service high performance memory caching method
WO2017096836A1 (en) Method and system for caching video file
JP7477251B2 (en) Method, system, and program for improving cacheability of single-page applications
CN105530303B (en) A kind of network-caching linear re-placement method
JP2003196144A (en) Cache control method for cache server
US20140359062A1 (en) Data transferring apparatus, data transferring system and non-transitory computer readable medium
JP3485915B1 (en) Gateway device, client computer and proxy server computer
US10187488B2 (en) Methods for managing replacement in a distributed cache environment and devices thereof
Hizria et al. Analysis Of Multi Rule Algorithm As An Improvement Of Network Performance
JP5424769B2 (en) Web server and blog page generation method

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: 21817368

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: 21817368

Country of ref document: EP

Kind code of ref document: A1