[go: up one dir, main page]

CN110633433B - Page caching method and device, electronic equipment and storage medium - Google Patents

Page caching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110633433B
CN110633433B CN201910656376.0A CN201910656376A CN110633433B CN 110633433 B CN110633433 B CN 110633433B CN 201910656376 A CN201910656376 A CN 201910656376A CN 110633433 B CN110633433 B CN 110633433B
Authority
CN
China
Prior art keywords
page
target
current
caching
target page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910656376.0A
Other languages
Chinese (zh)
Other versions
CN110633433A (en
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN201910656376.0A priority Critical patent/CN110633433B/en
Publication of CN110633433A publication Critical patent/CN110633433A/en
Application granted granted Critical
Publication of CN110633433B publication Critical patent/CN110633433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • G06F12/0895Caches characterised by their organisation or structure of parts of caches, e.g. directory or tag array
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1041Resource optimization
    • G06F2212/1044Space efficiency improvement
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The embodiment of the disclosure provides a page caching method, a page caching device, electronic equipment and a storage medium, wherein the method comprises the following steps: when the operation of triggering the current page to enter the next page is detected, determining the current storage information in the first cache region, and when the current storage information meets a first preset condition, respectively caching the target page data in the target page in the first cache region and the target page frame. According to the technical scheme, the problems that in the prior art, if more pages are opened step by step, the pages are required to be stored in the system memory to ensure that the function of returning to the previous level of page can be executed, but the pages occupy the larger memory of the system, the conditions of insufficient system memory, stuck operation and the like exist, the user experience is affected, the fact that partial page data are stored in advance is achieved, the storage strategy is optimized, the memory capacity of the system memory is reduced, and the technical effect of the user experience is improved are solved.

Description

一种页面缓存方法、装置、电子设备及存储介质A page caching method, device, electronic device and storage medium

技术领域Technical field

本公开实施例涉及计算机技术领域,尤其涉及一种页面缓存方法、装置、电子设备及存储介质。The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a page caching method, device, electronic device, and storage medium.

背景技术Background technique

随着电子类产品的发展,用户阅读各类文章或者观看视频多可以通过应用程序来实现。例如,用户触发应用程序后,打开其中某个页面进行浏览,若用户触发当前页面上的某一个控件时,就可以进入到当前页面的下一个页面进行浏览,也就是说通过页面中的链接或控件,可以无限次的进入到一个新的页面。通常页面中还会设有返回控件,点击后可以返回当前页面的上一个页面。With the development of electronic products, users can mostly read various articles or watch videos through applications. For example, after the user triggers the application, he opens one of the pages for browsing. If the user triggers a certain control on the current page, he can go to the next page of the current page for browsing, that is, through the links in the page or Control, you can enter a new page unlimited times. Usually there is also a return control on the page, which can be clicked to return to the previous page of the current page.

所以,如果界面内逐级打开的页面较多时,这些页面都需要存在内存中,以保证可执行返回上一级页面的功能。多个页面存储在内存中,存在占用内存较大,导致系统内存不足、出现卡顿的情况,进而影响用户体验的技术问题。Therefore, if there are many pages opened step by step in the interface, these pages need to be stored in memory to ensure that the function of returning to the previous page can be executed. Multiple pages are stored in the memory, which may take up a large amount of memory, resulting in insufficient system memory and lags, which in turn affects the user experience.

发明内容Contents of the invention

本公开实施例提供了一种页面缓存方法、装置、电子设备及存储介质,以实现优化存储策略,降低系统内存存储量,从而提高用户体验的技术效果。Embodiments of the present disclosure provide a page caching method, device, electronic device, and storage medium to optimize storage strategies, reduce system memory storage, and thereby improve the technical effect of user experience.

第一方面,本公开实施例还提供了一种页面缓存方法,该方法包括:In a first aspect, embodiments of the present disclosure also provide a page caching method, which method includes:

当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;When an operation triggering entry from the current page to the next page is detected, determine the currently stored information in the first cache area;

当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;When the currently stored information meets the first preset condition, the target page data in the target page in the first cache area and the target page frame are cached respectively;

其中,所述第一缓存区域为系统第一内存。Wherein, the first cache area is the first memory of the system.

第二方面,本公开实施例还提供了一种页面缓存装置,该装置包括:In a second aspect, embodiments of the present disclosure also provide a page caching device, which includes:

当前存储信息检测模块,用于当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;The current storage information detection module is used to determine the current storage information in the first cache area when an operation triggering entry from the current page to the next page is detected;

存储模块,用于当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;A storage module configured to cache the target page data and the target page frame in the target page in the first cache area when the currently stored information satisfies the first preset condition;

其中,所述第一缓存区域为系统第一内存。Wherein, the first cache area is the first memory of the system.

第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:In a third aspect, embodiments of the present disclosure also provide an electronic device, where the electronic device includes:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例任一所述的页面缓存方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the page caching method as described in any one of the embodiments of the present disclosure.

第四方面,本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如本公开实施例任一所述的页面缓存方法。In a fourth aspect, embodiments of the disclosure further provide a storage medium containing computer-executable instructions, which when executed by a computer processor are used to perform page caching as described in any embodiment of the disclosure. method.

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some pages are stored and optimized. The storage strategy is improved and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

附图说明Description of drawings

结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages, and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It is to be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.

图1为本公开实施例一所提供的一种页面缓存方法流程示意图;Figure 1 is a schematic flow chart of a page caching method provided by Embodiment 1 of the present disclosure;

图2为本公开实施例二所提供的一种页面缓存方法流程示意图;Figure 2 is a schematic flowchart of a page caching method provided by Embodiment 2 of the present disclosure;

图3为本公开实施例三所提供的一种页面回退方法流程示意图;Figure 3 is a schematic flow chart of a page rollback method provided by Embodiment 3 of the present disclosure;

图4为本公开实施例四所提供的一优选实施例流程示意图;Figure 4 is a schematic flow diagram of a preferred embodiment provided by Embodiment 4 of the present disclosure;

图5为本公开实施例五所提供的一种页面缓存装置结构示意图;Figure 5 is a schematic structural diagram of a page caching device provided by Embodiment 5 of the present disclosure;

图6为本公开实施例六所提供的一种电子设备结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by Embodiment 6 of the present disclosure.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the disclosure are shown in the drawings, it should be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, which rather are provided for A more thorough and complete understanding of this disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of the present disclosure.

应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。As used herein, the term "include" and its variations are open-ended, ie, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below.

需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units. Or interdependence.

需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or Multiple”.

实施例一Embodiment 1

图1为本公开实施例一所提供的一种页面缓存方法流程示意图,本实施例的方法可适用于当系统内存存储量满足预设条件时,对系统内存中存储的各个页面进行缓存的情形,该方法可以由页面缓存装置来执行,该装置可以通过软件和/或硬件的形式实现,可选的,该电子设备可以是移动终端、或PC端等。Figure 1 is a schematic flowchart of a page caching method provided by Embodiment 1 of the present disclosure. The method of this embodiment can be applied to the situation of caching each page stored in the system memory when the system memory storage meets the preset conditions. , this method can be executed by a page caching device, which can be implemented in the form of software and/or hardware. Optionally, the electronic device can be a mobile terminal, a PC, etc.

如图1所述,本实施例的方法包括:As shown in Figure 1, the method of this embodiment includes:

S110、当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息。S110. When an operation triggering entry from the current page to the next page is detected, determine the current storage information in the first cache area.

其中,将用户目前正在浏览的页面,作为当前页面。当前页面上可以包括至少两个控件,以供用户触发后进入下一个页面。当用户触发其中某一个控件时,可以从当前页面跳转到下一个页面进行浏览,即实现页面的逐级跳转。也就是说,通过触发当前页面中的链接或控件后,可以进入当前页面的下一个页面。第一缓存区域可以理解为某一个应用程序、或浏览器的系统内存,将第一缓存区域作为系统第一内存区域,用于存储用户逐级打开的各个页面。当前存储信息可以理解为,系统第一内存中存储的各个页面所占用的总内存,和/或第一缓存区域内存储的页面个数。Among them, the page that the user is currently browsing is regarded as the current page. The current page can include at least two controls for the user to enter the next page after being triggered. When the user triggers one of the controls, he or she can jump from the current page to the next page for browsing, that is, page jumps can be achieved step by step. That is to say, by triggering the link or control in the current page, you can enter the next page of the current page. The first cache area can be understood as the system memory of a certain application or browser. The first cache area is regarded as the first memory area of the system and is used to store each page opened by the user level by level. The current storage information can be understood as the total memory occupied by each page stored in the first memory of the system, and/or the number of pages stored in the first cache area.

具体的,在检测到用户触发当前页面上的某一个链接、或控件,跳转至下一个页面时,可以获取第一缓存区域中存储的页面个数,和/或第一缓存区域中存储的各个页面所占用的内存。Specifically, when it is detected that the user triggers a certain link or control on the current page and jumps to the next page, the number of pages stored in the first cache area and/or the number of pages stored in the first cache area can be obtained. The memory occupied by each page.

需要说明的是,当用户触发从当前页面跳转至下一个页面时,可以将当前页面跳转至第一缓存区域中。It should be noted that when the user triggers a jump from the current page to the next page, the current page can be jumped to the first cache area.

S120、当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存。S120. When the currently stored information meets the first preset condition, cache the target page data and the target page frame in the target page in the first cache area respectively.

其中,将当前存储信息中存储量满足的预设阈值作为第一预设条件。第一预设条件可以是:当前存储信息中存储的页面个数大于第一预设页面个数,和/或,当前存储信息中存储的各个页面所占用的内存超过预设存储内存。也就是说,当前存储信息只要满足上述条件中的一个,就可以从第一缓存区域中获取目标页面。目标页面可以理解为,将从第一缓存区域,获取到存储至目标位置的页面。页面包括页面数据,以及页面框架。将目标页面的页面数据作为目标页面数据,目标页面中的页面框架作为目标页面框架。Among them, the preset threshold that the storage amount in the current stored information meets is used as the first preset condition. The first preset condition may be: the number of pages stored in the current storage information is greater than the first preset number of pages, and/or the memory occupied by each page stored in the current storage information exceeds the preset storage memory. That is to say, as long as the currently stored information satisfies one of the above conditions, the target page can be obtained from the first cache area. The target page can be understood as the page stored in the target location obtained from the first cache area. Pages include page data and page frames. The page data of the target page is used as the target page data, and the page frame in the target page is used as the target page frame.

在本实施例中,对目标页面中的目标页面数据,以及目标页面框架分别进行缓存,可以是:将目标页面中的目标页面数据存储到本地磁盘中,将目标页面中的目标页面框架存储到缓存池中,所述缓存池为系统第二内存。In this embodiment, the target page data and the target page frame in the target page are cached separately, which can be: storing the target page data in the target page in the local disk, and storing the target page frame in the target page in In the cache pool, the cache pool is the second memory of the system.

其中,缓存池为应用程序的第二内存。第一内存与第二内存均为系统内存的一部分。Among them, the cache pool is the second memory of the application. Both the first memory and the second memory are part of the system memory.

具体的,当第一缓存区域中存储的页面个数大于第一预设页面个数,和/或存储各个页面所占用的总内存超过预设存储内存时,可以从第一缓存区域中确定将要存储到目标位置的目标页面。当目标页面确定后,可以分别将目标页面上的页面数据缓存至本地磁盘中,将目标页面的页面框架缓存至缓存池中。Specifically, when the number of pages stored in the first cache area is greater than the first preset number of pages, and/or the total memory occupied by storing each page exceeds the preset storage memory, it can be determined from the first cache area The target page stored to the target location. After the target page is determined, the page data on the target page can be cached in the local disk, and the page frame of the target page can be cached in the cache pool.

示例性的,第一预设条件是,第一缓存区域中存储的页面个数阈值为10个,和/或存储各个页面个数所占用的内存为512M。当用户触发当前页面上的控件进入下一个页面时,可以将当前页面存储到第一缓存区域,并获取到第一缓存区域中存储的页面个数为11个,已超过页面个数阈值10个,那么可从11个页面中获取目标页面,并将目标页面的页面数据存储至本地磁盘中,将目标页面框架存储至缓存池中。For example, the first preset condition is that the threshold value of the number of pages stored in the first cache area is 10, and/or the memory occupied by storing each number of pages is 512M. When the user triggers the control on the current page to enter the next page, the current page can be stored in the first cache area, and the number of pages stored in the first cache area is 11, which exceeds the page number threshold of 10 , then the target page can be obtained from 11 pages, the page data of the target page can be stored in the local disk, and the target page frame can be stored in the cache pool.

需要说明的是,若当前存储信息不满足第一预设条件,则可以不执行上述操作。It should be noted that if the currently stored information does not meet the first preset condition, the above operation may not be performed.

在本实施例中,从第一缓存区域中确定目标页面可以是:当当前存储信息满足第一预设条件时,获取第一缓存区域中缓存各个页面的缓存时刻;根据缓存时刻,确定距离当前时刻的时间差值,将距离当前时刻时间差值最大时所对应的页面作为目标页面,将目标页面中的目标页面数据缓存至本地磁盘中,将目标页面框架缓存至缓存池中;其中,当前时刻为检测到当前存储信息满足第一预设条件的时刻。In this embodiment, determining the target page from the first cache area may be: when the current stored information satisfies the first preset condition, obtain the cache time of each page cached in the first cache area; based on the cache time, determine the distance from the current The time difference between moments, the page corresponding to the maximum time difference from the current moment is used as the target page, the target page data in the target page is cached in the local disk, and the target page frame is cached in the cache pool; among them, the current The time is the time when it is detected that the currently stored information satisfies the first preset condition.

其中,将页面存储到第一缓存区域中的时刻,作为页面的缓存时刻。也就是说,第一缓存区域中存储的页面不同,对应的缓存时刻也不相同。当前时刻是指:检测到用户触发从当前页面进入下一页面,将当前页面存储到第一缓存区域后,获取到第一缓存区域中的存储信息满足预设条件的时刻。The time when the page is stored in the first cache area is used as the cache time of the page. That is to say, if the pages stored in the first cache area are different, the corresponding cache times are also different. The current moment refers to the moment when it is detected that the user triggers entering the next page from the current page, and after storing the current page in the first cache area, the stored information in the first cache area meets the preset conditions.

可以理解为,若当前存储信息满足第一预设条件时,可以获取第一缓存区域中存储各个页面的缓存时刻。并计算各个页面的缓存时刻与当前时刻之间的时间差值。当时间差值越大,说明页面缓存至第一缓存区域的时间越早,即为用户较早浏览的页面。可以将距离当前时刻时间差值最大所对应的页面作为目标页面,即将第一缓存区域中用户最早浏览的页面作为目标页面。将目标页面上的页面数据缓存至本地磁盘中,将目标页面上的页面框架缓存至缓存池中。It can be understood that if the currently stored information satisfies the first preset condition, the cache time of each page stored in the first cache area can be obtained. And calculate the time difference between the cache time of each page and the current time. When the time difference is larger, it means that the page is cached in the first cache area earlier, that is, the page that the user browsed earlier. The page corresponding to the largest time difference from the current moment can be used as the target page, that is, the page that the user browses earliest in the first cache area can be used as the target page. Cache the page data on the target page to the local disk, and cache the page frame on the target page to the cache pool.

示例性的,当前存储信息满足第一预设条件的时刻为A,第一缓存区域中存储各个页面的缓存时刻分别为A1、A2、A3、A4、…A10。其中,A1表示页面最早存储到第一缓存区域中时刻,以此类推,A10表示最后存储到第一缓存区域中的时刻。那么,与缓存时刻A1相对应的页面为目标页面,并分别对目标页面中的与页面数据与页面框架进行缓存。For example, the time when the currently stored information satisfies the first preset condition is A, and the cache time when each page is stored in the first cache area is A1, A2, A3, A4,...A10. Among them, A1 represents the earliest time when the page is stored in the first cache area, and by analogy, A10 represents the last time when the page is stored in the first cache area. Then, the page corresponding to the cache time A1 is the target page, and the page data and page frame in the target page are cached respectively.

当然,也可以将存储到第一缓存区域中的各个页面进行编号,将第一个存储到第一缓存区域的页面编号为1,第二个存储到缓存区域的页面编号为2,以此类推,对存储第一缓存区域中的各个页面进行编号,并按照编号的顺序存储各个页面。当检测到第一缓存区域存储的页面编号为11,超过页面个数阈值10时,可以将编号为1的页面作为目标页面,并分别对目标页面的页面数据以及页面框架进行缓存;若再次存储到第一缓存区域中的页面编号数字为12时,则将第一缓存区域中编号为2的页面作为目标页面,缓存至目标位置,以此类推从第一缓存区域中确定目标页面。也就是说,在确定目标页面并将目标页面存储至目标位置的过程中,第一缓存区域中,存储的页面个数始终小于等于预设页面个数阈值。Of course, each page stored in the first cache area can also be numbered. The first page stored in the first cache area is numbered 1, the second page stored in the cache area is numbered 2, and so on. , number each page stored in the first cache area, and store each page in the order of numbering. When it is detected that the page number stored in the first cache area is 11, which exceeds the page number threshold of 10, the page numbered 1 can be used as the target page, and the page data and page frame of the target page can be cached respectively; if it is stored again When the page number in the first cache area reaches 12, the page number 2 in the first cache area is used as the target page and cached to the target location, and so on to determine the target page from the first cache area. That is to say, during the process of determining the target page and storing the target page at the target location, the number of pages stored in the first cache area is always less than or equal to the preset page number threshold.

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面数据进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some page data is stored. The storage strategy is optimized and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

实施例二Embodiment 2

在实施例一的基础上,在将目标页面中的页面数据缓存至本地磁盘,目标页面框架缓存至缓存池中之后,若是触发了从当前页面进入到下一页面时,所执行的操作可以参见图2。图2为本公开实施例二所提供的一种页面缓存方法的流程示意图。Based on the first embodiment, after the page data in the target page is cached to the local disk and the target page frame is cached in the cache pool, if the entry from the current page to the next page is triggered, the operations performed can be found in figure 2. FIG. 2 is a schematic flowchart of a page caching method provided by Embodiment 2 of the present disclosure.

如图2所示,所述方法包括:As shown in Figure 2, the method includes:

S210、当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息。S210. When an operation triggering entry from the current page to the next page is detected, determine the current storage information in the first cache area.

示例性的,若用户启动某个应用程序,浏览应用程序中的某个页面时,可以触发当前页面中的控件,从而进入当前页面的下一个页面。当检测到用户的触发操作时,可以将当前页面存储至第一缓存区域中,并获取第一缓存区域中的当前存储信息,即该应用程序的系统第一内存中当前存储信息,可选的,系统第一内存中存储了6个页面。其中,页面包括页面数据以及页面框架。For example, if the user starts an application and browses a certain page in the application, the control in the current page can be triggered to enter the next page of the current page. When the user's trigger operation is detected, the current page can be stored in the first cache area, and the current storage information in the first cache area can be obtained, that is, the current storage information in the first memory of the system of the application program, optional , 6 pages are stored in the first memory of the system. Among them, the page includes page data and page frame.

需要说明的是,当用户触发从当前页面进入到下一页面的操作时,可以优先将当前页面存储至第一缓存区域中,在获取第一缓存区域的当前存储信息。例如,用户触发第一个页面上的控件进入第二个页面时,可以将第一个页面缓存至第一缓存区域中,此时获取到第一缓存区域中的当前存储信息为,存储的页面个数为1个;当用户触发第二个页面上的控件,跳转至第三个页面时,可以将第二个页面缓存至第一缓存区域中,此时,获取到第一缓存区域中的当前存储信息为,存储的页面个数为2个。可以按照上述方式对各个页面进行存储后,获取第一缓存区域中的当前存储信息。It should be noted that when the user triggers the operation of entering from the current page to the next page, the current page can be stored in the first cache area first, and then the current storage information of the first cache area is obtained. For example, when the user triggers the control on the first page to enter the second page, the first page can be cached in the first cache area. At this time, the current storage information in the first cache area is obtained, and the stored page The number is 1; when the user triggers the control on the second page and jumps to the third page, the second page can be cached in the first cache area. At this time, the first cache area is obtained. The current storage information is, and the number of stored pages is 2. After each page is stored in the above manner, the current storage information in the first cache area can be obtained.

S220、当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存。S220. When the currently stored information meets the first preset condition, cache the target page data and the target page frame in the target page in the first cache area respectively.

示例性的,第一预设条件为:第一缓存区域中,页面个数存储阈值为5个页面,即第一缓存区域内存储的页面个数需要小于等于五个页面。由于当前存储信息中存储的页面个数为6个页面,超过预设页面个数阈值,则可以将第一缓存区域中存储时间最早所对应的页面作为目标页面。例如,第一缓存区域中存储各个页面的时间依次为:八点二十分十五秒、八点二十分三十秒、八点二十一分四十五秒、八点二十二分四十秒、八点二十三分三十秒、八点二十五分四十秒。由此可知,最早存储至第一缓存区域页面,对应的时间为八点二十分十五秒,可以将与该时间对应的页面作为目标页面。For example, the first preset condition is: in the first cache area, the page number storage threshold is 5 pages, that is, the number of pages stored in the first cache area needs to be less than or equal to five pages. Since the number of pages stored in the current storage information is 6 pages and exceeds the preset page number threshold, the page corresponding to the earliest storage time in the first cache area can be used as the target page. For example, the time of storing each page in the first cache area is: 8:20:15, 8:20:30, 8:21:45, 8:22 Forty seconds, eight twenty-three and thirty seconds, eight twenty-five and forty seconds. It can be seen that the earliest page stored in the first cache area corresponds to a time of 8:20:15, and the page corresponding to this time can be used as the target page.

将目标页面中的目标页面数据缓存至本地磁盘中,以及目标页面框架缓存至缓存池中,即系统第二内存中。Cache the target page data in the target page to the local disk, and cache the target page frame to the cache pool, that is, the second memory of the system.

在本实施例中,可以根据第一缓存区域中缓存各个页面的缓存时刻,来确定目标页面;还可以是在页面缓存至第一缓存区域时,对各个页面进行编号,当第一缓存区域满足第一预设条件时,可以将编号最小的页面作为目标页面。In this embodiment, the target page can be determined based on the cache time of each page cached in the first cache area; or when the page is cached in the first cache area, each page can be numbered. When the first cache area satisfies In the first preset condition, the page with the smallest number can be used as the target page.

S230、当检测到触发进入下一页面的触控操作时,加载与下一页面相对应的待处理数据,并从缓存池中加载目标页面框架。S230. When a touch operation that triggers entry to the next page is detected, load the data to be processed corresponding to the next page, and load the target page frame from the cache pool.

其中,待处理图像是指与下一页面相对应的页面数据。目标页面框架是指S210至S220确定的缓存至缓存池的页面框架。Among them, the image to be processed refers to the page data corresponding to the next page. The target page frame refers to the page frame cached to the cache pool determined in S210 to S220.

在S210至S220的基础上,检测到触发当前页面上的控件进入下一页面时,可以加载与下一页面相对应的页面数据,并从缓存池中加载页面框架。这样设置的好处在于,可以快速从系统内存中获取页面框架,不需要重新加载页面框架,以实现节约资源的技术效果。On the basis of S210 to S220, when it is detected that the control on the current page is triggered to enter the next page, the page data corresponding to the next page can be loaded, and the page frame is loaded from the cache pool. The advantage of this setting is that the page frame can be quickly obtained from the system memory without reloading the page frame, thereby achieving the technical effect of saving resources.

需要说明的是,本步骤适用于缓存池中存储有页面框架的情形下。若是缓存池中不存在页面框架,则在检测到触发从当前页面进入到下一个页面的触控操作时,可以加载与下一个页面相对应的待处理数据以及页面框架,对待处理数据以及页面框架进行渲染处理后,得到下一页面。It should be noted that this step is applicable when page frames are stored in the cache pool. If there is no page frame in the cache pool, when a touch operation is detected that triggers entry from the current page to the next page, the pending data and page frame corresponding to the next page can be loaded. The pending data and page frame can be loaded. After rendering processing, the next page is obtained.

S240、对待处理数据以及目标页面框架进行渲染处理,得到下一页面。S240: Render the data to be processed and the target page frame to obtain the next page.

具体的,将获取到的与下一页面相对应的页面数据,以及从缓存池中获取的目标框架进行渲染处理后,可以得到下一个页面。Specifically, after rendering the obtained page data corresponding to the next page and the target frame obtained from the cache pool, the next page can be obtained.

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面数据进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some page data is stored. The storage strategy is optimized and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

实施例三Embodiment 3

在上述技术方案的基础上,当检测到用户触发页面回退的操作时,可以根据第一缓存区域中存储的信息,对目标位置存储的各个页面数据、以及缓存池中存储的页面框架进行处理。图3为本公开实施例三所提供的一种页面回退方法流程示意图。Based on the above technical solution, when a user's operation to trigger page rollback is detected, each page data stored in the target location and the page frame stored in the cache pool can be processed according to the information stored in the first cache area. . FIG. 3 is a schematic flowchart of a page rollback method provided by Embodiment 3 of the present disclosure.

如图3所示,所述方法包括:As shown in Figure 3, the method includes:

S310、当检测到触发从当前页面回退到前一个页面的操作时,确定第一缓存区域中的当前存储信息。S310. When an operation triggering a rollback from the current page to the previous page is detected, determine the current storage information in the first cache area.

其中,前一个页面可以理解为,当前页面之前所有浏览的页面中,距离当前页面时间间隔最小的页面。Among them, the previous page can be understood as the page with the smallest time interval from the current page among all the pages browsed before the current page.

具体的,当检测到触发从当前页面回退到前一个页面的触发操作时,读取第一缓存区域中存储信息,并将此时读取到的存储信息,作为当前存储信息。Specifically, when a trigger operation that triggers a rollback from the current page to the previous page is detected, the stored information in the first cache area is read, and the stored information read at this time is used as the current stored information.

示例性的,获取到第一缓存区域的当前存储信息为存储了4个页面。For example, the current storage information obtained in the first cache area is that 4 pages are stored.

S320、当当前存储信息满足第二预设条件时,则从本地磁盘中获取目标待回调页面数据。S320. When the currently stored information satisfies the second preset condition, obtain the target page data to be called back from the local disk.

需要说明的是,当检测到从当前页面进入到下一个页面的触发操作时,第一缓存区域中存储的页面是否需要缓存至目标位置,需要满足第一预设条件。相应的,当检测到用户触发回退操作时,是否从目标位置获取待回调页面数据,需要满足第二预设条件。It should be noted that when a trigger operation of entering from the current page to the next page is detected, whether the page stored in the first cache area needs to be cached to the target location needs to meet the first preset condition. Correspondingly, when it is detected that the user triggers the rollback operation, whether to obtain the page data to be called back from the target location needs to meet the second preset condition.

可选的,第二预设条件可以是:当前存储信息中存储的页面个数小于第一预设页面个数;和/或,当前存储信息中存储的各个页面所占用的总内存小于预设存储内存。Optionally, the second preset condition may be: the number of pages stored in the current storage information is less than the first preset number of pages; and/or the total memory occupied by each page stored in the current storage information is less than the preset number. Storage memory.

具体的,当当前存储信息中存储的页面个数小于第一预设页面个数,和/或,当前存储信息中存储的各个页面所占用的内存小于预设存储内存时,可以从目标位置获取目标待回调页面数据。Specifically, when the number of pages stored in the current storage information is less than the first preset number of pages, and/or the memory occupied by each page stored in the current storage information is less than the preset storage memory, it can be obtained from the target location. The target page data to be called back.

可选的,确定目标待回调数据可以是:获取本地磁盘中存储每个页面数据的存放时刻,根据存放时刻以及返回时刻,得到与每个页面数据相对应的时间差值;其中,返回时刻为用户触发从当前页面回退到前一个页面操作的时刻;将时间差值最小所对应的页面数据,作为目标待回调页面数据。Optionally, determining the target data to be called back can be: obtaining the storage time of each page data stored in the local disk, and obtaining the time difference corresponding to each page data based on the storage time and return time; where the return time is The moment when the user triggers a rollback from the current page to the previous page operation; the page data corresponding to the smallest time difference is used as the target page data to be called back.

其中,将页面数据从第一缓存区域存储至本地磁盘时,所对应的时刻作为存放时刻。返回时刻是指用户触发从当前页面回退到前一个页面操作的时刻。目标待回调页面数据是将从目标位置回调至第一缓存区域的页面数据。Wherein, when the page data is stored from the first cache area to the local disk, the corresponding time is regarded as the storage time. The return time refers to the time when the user triggers the return operation from the current page to the previous page. The target page data to be called back is the page data that will be called back from the target location to the first cache area.

根据存放时刻,以及返回时刻,可以确定本地磁盘中每个页面距离返回时刻的时间差值。时间差值越大,与存放时刻相对应的页面用户最早浏览的;相应的,时间差值越小,与存放时刻相对应的页面为用户最近浏览的。Based on the storage time and return time, the time difference between each page in the local disk and the return time can be determined. The larger the time difference, the page corresponding to the storage time was viewed by the user earliest; correspondingly, the smaller the time difference is, the page corresponding to the storage time was viewed recently by the user.

需要说明的是,页面回退时,最先回退到的是用户最新浏览的页面,例如,用户浏览页面A,并触发A页面上的内容进入页面B之后,又触发B页面上的控件进入页面C之后,用户触发了回退操作,那么最先回退到的页面为页面B,再触发回退操作后,可以回退到页面A。也就是说,当检测到用户触发页面回退的操作时,可以将距离当前时刻时间差值最小所对应的页面数据,作为目标待回调页面数据。It should be noted that when the page is rolled back, the first page returned to is the page the user recently browsed. For example, the user browses page A and triggers the content on page A to enter page B, and then triggers the control on page B to enter. After page C, if the user triggers the rollback operation, the first page to return to is page B. After triggering the rollback operation, the user can return to page A. That is to say, when the user's operation to trigger page rollback is detected, the page data corresponding to the smallest time difference from the current moment can be used as the target page data to be called back.

具体的,获取本地磁盘中存储的每个页面数据的存放时刻,并根据返回时刻,确定每个页面距离返回时刻的时间差值。将时间差值做小所对应的页面数据,作为目标待回调页面数据。Specifically, the storage time of each page data stored in the local disk is obtained, and based on the return time, the time difference between each page and the return time is determined. The page data corresponding to the smaller time difference is used as the target page data to be called back.

需要说明的是,还可以在与各个页面相对应的页面数据存储至本地磁盘时,对各个页面数据进行编号,将最先存储到本地磁盘的页面数据标记为1,第二个存储到本地磁盘的页面数据标记为2,依次类推,对存储到本地磁盘的页面数据依次进行编号。当回调页面数据时,可以优先将编号最大的页面数据作为目标待回调页面数据。It should be noted that when the page data corresponding to each page is stored in the local disk, each page data can also be numbered, and the first page data stored in the local disk is marked as 1, and the second page data is stored in the local disk. The page data is marked as 2, and so on, and the page data stored in the local disk is numbered in sequence. When calling back page data, the page data with the largest number can be prioritized as the target page data to be called back.

S330、基于目标待回调页面数据以及页面框架,得到目标回调页面,将目标回调页面回调至第一缓存区域中的预设位置。S330: Obtain the target callback page based on the target page data to be called back and the page frame, and call back the target callback page to a preset position in the first cache area.

其中,预设位置可以是第一缓存区域中,存储的各个页面的首位。The preset position may be the first position of each page stored in the first cache area.

具体的,对目标待回调页面数据,以及页面框架进行渲染处理后,得到目标回调页面。可以将目标回调页面存放至第一缓存区域中各个页面的首位。Specifically, after rendering the target page data to be called back and the page frame, the target callback page is obtained. The target callback page can be stored at the top of each page in the first cache area.

为了得到目标回调页面,在获取目标待回调页面数据之后,还需要获取页面框架。可选的,检测缓存池中是否存储页面框架;若是,则获取页面框架,并与目标待回调页面数据进行渲染处理得到目标待回调页面;若否,则新建立页面框架,并与目标待回调页面数据进行渲染处理,得到目标待回调页面。In order to obtain the target callback page, after obtaining the data of the target page to be called back, you also need to obtain the page frame. Optionally, check whether the page frame is stored in the cache pool; if so, obtain the page frame, and render it with the target page data to be called back to obtain the target page to be called back; if not, create a new page frame and combine it with the target to be called back The page data is rendered and processed to obtain the target page to be called back.

其中,当缓存池中缓存有页面框架时,可以从缓存池中获取页面框架,与目标待回调数据进行渲染处理,得到目标回调页面。若缓存池中未存储有页面框架时,可以新建立一个页面框架,并与获取到的目标待回调页面数据进行处理,得到目标回调页面。Among them, when there is a page frame cached in the cache pool, the page frame can be obtained from the cache pool and rendered with the target data to be called back to obtain the target callback page. If there is no page frame stored in the cache pool, a new page frame can be created and processed with the obtained target page data to be called back to obtain the target callback page.

示例性的,第二预设条件阈值为5个,当检测到第一缓存区域中存储的页面个数为4个小于第二预设条件,且第一缓存区域中存储的页面编号分别为6、5、4、3,那么本地磁盘中存储的页面数据应该有两个,对应的编号可以分别是2和1,则将与编号2相对应的页面数据作为待回调页面数据,并将其插入到编号为3的后边,此时第一缓存区域中存储的各个页面编号分别为6、5、4、3、2,当触发页面回退时,先回退至编号为6的页面、再回退至编号为5的页面、以此类推。For example, the second preset condition threshold is 5. When it is detected that the number of pages stored in the first cache area is 4, which is less than the second preset condition, and the page numbers stored in the first cache area are 6 respectively. , 5, 4, 3, then there should be two page data stored in the local disk, and the corresponding numbers can be 2 and 1 respectively. Then use the page data corresponding to number 2 as the page data to be called back, and insert it After reaching the page numbered 3, the page numbers stored in the first cache area are 6, 5, 4, 3, and 2 respectively. When the page rollback is triggered, the page rollback is first rolled back to the page numbered 6, and then back. Return to page number 5, and so on.

需要说明的是,若是第一缓存区域中存储的页面个数满足第二预设条件,且本地磁盘中未存储有页面数据时,则即使检测到页面回退操作,可以不再读取本地磁盘中的页面数据。It should be noted that if the number of pages stored in the first cache area meets the second preset condition and no page data is stored in the local disk, even if a page rollback operation is detected, the local disk may no longer be read. page data in .

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面数据进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some page data is stored. The storage strategy is optimized and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

实施例四Embodiment 4

作为上述实施例的一优选实施例,图4为本公开实施例四所提供的一优选实施例流程示意图。As a preferred embodiment of the above embodiment, FIG. 4 is a schematic flowchart of a preferred embodiment provided by Embodiment 4 of the present disclosure.

如图4所示,所述方法包括:As shown in Figure 4, the method includes:

S410、在触发当前页面上的控件进入下一页面时,获取第一缓存区域的当前存储页面个数。S410. When triggering the control on the current page to enter the next page, obtain the current number of stored pages in the first cache area.

示例性的,用户触发当前页面上的某个控件,进入下一个页面时,可以将当前页面存储至第一缓存区域,同时获取第一缓存区域中的当前存储的页面个数为6个页面。也就是说,在用户浏览当前页面时,第一缓存区域中存储的页面个数为5个,当从当前页面进入到下一个页面时,将当前页面存储到第一缓存区域后,第一缓存区域中的当前存储页面个数为6个页面。For example, when the user triggers a certain control on the current page and enters the next page, the current page can be stored in the first cache area, and at the same time, the number of currently stored pages in the first cache area is obtained, which is 6 pages. That is to say, when the user browses the current page, the number of pages stored in the first cache area is 5. When entering the next page from the current page, after the current page is stored in the first cache area, the first cache area The current number of stored pages in the area is 6 pages.

S420、判断当前存储页面个数是否大于预设页面个数阈值,若是,则执行S430;若否,则返回执行S410。S420. Determine whether the number of currently stored pages is greater than the preset page number threshold. If so, execute S430; if not, return to execute S410.

其中,预设页面个数阈值为5个。Among them, the default page number threshold is 5.

也就是说,当前存储页面个数大于预设页面个数阈值时,则可以对第一缓存区域中的页面进行处理,即执行S430。若当前存储页面个数小于预设页面个数阈值时,则继续检测用户是否触发了从当前页面进入下一页面的操作,即重复执行S410以及S420。That is to say, when the number of currently stored pages is greater than the preset page number threshold, the pages in the first cache area can be processed, that is, S430 is executed. If the number of currently stored pages is less than the preset page number threshold, continue to detect whether the user triggers the operation of entering the next page from the current page, that is, repeat S410 and S420.

S430、获取第一缓存区域中的目标页面,并将目标页面中的目标页面数据以及目标页面框架缓存至目标位置。S430. Obtain the target page in the first cache area, and cache the target page data and the target page frame in the target page to the target location.

在本实施例中,可以根据第一缓存区域中存储各个页面的缓存时刻,或存储各个页面的编号,来确定目标页面。可以分别以上述两种方式为例来介绍。In this embodiment, the target page may be determined based on the cache time of each page stored in the first cache area or the number of each page stored. The above two methods can be used as examples to introduce them.

示例性的,获取第一缓存区域中存储各个页面的缓存时刻,并将距离当前时刻时间差值最大的页面,作为目标页面。将目标页面中的页面数据缓存至本地磁盘,将目标页面中的目标页面框架缓存至缓存池中。For example, the cache time of each page stored in the first cache area is obtained, and the page with the largest time difference from the current time is used as the target page. Cache the page data in the target page to the local disk, and cache the target page frame in the target page to the cache pool.

示例性的,在将各个页面缓存至第一缓存区域时,可以根据缓存各个页面的先后顺序进行编号,即将第一个缓存至第一缓存区域的页面编号为1,以此类推得到编号为6的页面。将编号最小,即最先存储到第一缓存区域的页面作为目标页面。将目标页面中的页面数据缓存至本地磁盘,将页面框架缓存至缓存池。For example, when caching each page to the first cache area, the pages can be numbered according to the order in which the pages are cached, that is, the first page cached in the first cache area is numbered 1, and so on to get the number 6. page. The page with the smallest number, that is, the page that is first stored in the first cache area, is used as the target page. Cache the page data in the target page to the local disk and cache the page frame to the cache pool.

S440、当检测用户触发从当前页面回退至前一页面时,获取第一缓存区域中的当前存储页面个数。S440. When it is detected that the user triggers a rollback from the current page to the previous page, obtain the current number of stored pages in the first cache area.

当检测当用户触发送从当前页面回退至前一页面时,也需要获取第一缓存区域中当前存储的页面个数。When detecting that the user is triggered to return from the current page to the previous page, it is also necessary to obtain the number of pages currently stored in the first cache area.

示例性的,当检测回退操作时,即当前页面为前一个页面,或跳转到前一个页面的过程中,获取到第一缓存区域中当前存储的页面个数为4个。For example, when detecting a rollback operation, that is, the current page is the previous page, or in the process of jumping to the previous page, it is obtained that the number of pages currently stored in the first cache area is 4.

S450、判断当前存储页面个数是否小于预设页面个数阈值,若是,执行S460;若否,则返回执行S440。S450: Determine whether the number of currently stored pages is less than the preset page number threshold. If yes, execute S460; if not, return to execute S440.

示例性的,预设页面个数阈值为5个页面。当当前存储页面个数4个页面,小于预设页面个数阈值5个时,可以从本地磁盘中待回调页面数据,即执行S460。若当前存储页面个数不小于预设页面个数阈值时,则可以继续检测用户是否触发了页面回退操作,即执行S440。For example, the preset page number threshold is 5 pages. When the current number of stored pages is 4 pages and is less than the preset page number threshold of 5, the page data to be recalled from the local disk can be retrieved, that is, S460 is executed. If the number of currently stored pages is not less than the preset page number threshold, it can continue to be detected whether the user has triggered a page rollback operation, that is, S440 is executed.

S460、从本地磁盘中获取目标待回调页面数据,并从缓存池中获取页面框,将所述目标待回调页面数据以及所述页面框架进行处理后,得到目标回调页面。S460: Obtain the target page data to be called back from the local disk, obtain the page frame from the cache pool, and process the target page data to be called back and the page frame to obtain the target callback page.

具体的,将本地磁盘中存储各个页面数据时,距离当前时刻时间差值最小所对应的页面数据,作为目标待回调页面数据。并从缓存池中获取页面框架,将待回调页面数据与页面框架,进行渲染处理,得到目标回调页面。Specifically, when storing each page data in the local disk, the page data corresponding to the smallest time difference from the current moment is used as the target page data to be called back. And obtain the page frame from the cache pool, render the page data to be called back and the page frame, and obtain the target callback page.

可以将目标回调数据,存放至第一缓存区域中所有存储页面的首位。The target callback data can be stored at the first place of all storage pages in the first cache area.

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面数据进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some page data is stored. The storage strategy is optimized and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

实施例五Embodiment 5

图5为本公开实施例五提供的一种页面缓存装置结构示意图,该装置包括:当前存储信息检测模块510、以及存储模块520。FIG. 5 is a schematic structural diagram of a page cache device provided in Embodiment 5 of the present disclosure. The device includes: a currently stored information detection module 510 and a storage module 520.

当前存储信息检测模块510,用于当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;存储模块520,用于当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;其中,所述第一缓存区域为系统第一内存。The current stored information detection module 510 is used to determine the current stored information in the first cache area when the operation of triggering the entry from the current page to the next page is detected; the storage module 520 is used to determine the current stored information in the first cache area when the current stored information satisfies the first When a preset condition is met, the target page data in the target page and the target page frame in the first cache area are cached respectively; wherein the first cache area is the first memory of the system.

本公开实施例的技术方案,通过当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息,当当前存储信息满足第一预设条件时,则将第一缓存区域内目标页面中的目标页面数据,解决了现有技术中如果逐级打开的页面较多时,页面均需要存储在系统内存中,以保证可执行返回上一级页面的功能,但这些页面需要占用系统较大的内存,存在系统内存不足、运行出现卡顿等情况、从而影响用户体验的技术问题,实现了当系统内存存储量满足预设条件时,对部分页面数据进行存储,优化了存储策略,降低了系统内存存储量,从而提高用户体验的技术效果。The technical solution of the embodiment of the present disclosure is to determine the current stored information in the first cache area when an operation triggering entry from the current page to the next page is detected, and when the currently stored information satisfies the first preset condition, the The target page data in the target page in the first cache area solves the problem in the existing technology that if there are many pages opened level by level, the pages need to be stored in the system memory to ensure that the function of returning to the previous level page can be executed. However, These pages need to occupy a large amount of system memory. There are technical problems such as insufficient system memory and lags in operation, which affect the user experience. When the system memory storage meets the preset conditions, some page data is stored. The storage strategy is optimized and the amount of system memory storage is reduced, thereby improving the technical effect of user experience.

在上述各技术方案的基础上,所述存储模块,还用于:Based on the above technical solutions, the storage module is also used for:

将所述目标页面中的页面数据缓存至本地磁盘、以及将目标页面框架缓存至缓存池中;其中,所述缓存池为系统第二内存。The page data in the target page is cached in the local disk, and the target page frame is cached in a cache pool; wherein the cache pool is the second memory of the system.

在上述各技术方案的基础上,所述存储模块还包括:预设条件判断单元;On the basis of the above technical solutions, the storage module also includes: a preset condition judgment unit;

所述预设条件判断单元,用于当检测到满足下述至少一项条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存:所述当前存储信息中存储的页面个数大于第一预设页面个数;所述当前存储信息中的存储各个页面所占用的总内存超过预设存储内存;其中,所述页面中包括页面数据和页面框架。The preset condition judgment unit is configured to cache the target page data and the target page frame in the target page in the first cache area respectively when it detects that at least one of the following conditions is met: the currently stored The number of pages stored in the information is greater than the first preset number of pages; the total memory occupied by storing each page in the currently stored information exceeds the preset storage memory; wherein the pages include page data and page frames.

在上述各技术方案的基础上,所述存储模块还用于:On the basis of the above technical solutions, the storage module is also used for:

当所述当前存储信息满足所述第一预设条件时,获取所述第一缓存区域中缓存各个页面的缓存时刻;根据所述缓存时刻,确定距离当前时刻的时间差值,将距离当前时刻时间差值最大时所对应的页面作为目标页面,将所述目标页面中的目标页面数据缓存至本地磁盘中,将目标页面框架缓存至所述缓存池中;其中,所述当前时刻为检测到所述当前存储信息满足第一预设条件的时刻。When the currently stored information satisfies the first preset condition, the cache time of each page cached in the first cache area is obtained; according to the cache time, the time difference from the current time is determined, and the time difference from the current time is determined. The page corresponding to the maximum time difference is used as the target page, the target page data in the target page is cached in the local disk, and the target page frame is cached in the cache pool; wherein, the current moment is the detection The moment when the currently stored information meets the first preset condition.

在上述各技术方案的基础上,所述存储模块,在用于当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存之后,还用于:Based on the above technical solutions, the storage module is used to store the target page data and the target page in the target page in the first cache area when the currently stored information satisfies the first preset condition. After the framework is cached separately, it is also used for:

当检测到触发进入下一页面的触控操作时,加载与所述下一页面相对应的待处理数据,并从所述缓存池中加载所述目标页面框架;对所述待处理数据以及所述目标页面框架进行渲染处理,得到所述下一页面。When a touch operation that triggers entry to the next page is detected, the data to be processed corresponding to the next page is loaded, and the target page frame is loaded from the cache pool; the data to be processed and the The target page frame is rendered and processed to obtain the next page.

在上述各技术方案的基础上,所述装置还包括:回退检测模块;所述回退检测模块包括:On the basis of the above technical solutions, the device further includes: a rollback detection module; the rollback detection module includes:

回退操作检测单元,用于当检测到触发从当前页面回退到前一个页面的操作时,确定所述第一缓存区域中的当前存储信息;A rollback operation detection unit configured to determine the current storage information in the first cache area when an operation triggering rollback from the current page to the previous page is detected;

回调页面获取单元,用于当所述当前存储信息满足第二预设条件时,则从所述本地磁盘中获取目标待回调页面数据;A callback page acquisition unit configured to acquire the target page data to be called back from the local disk when the currently stored information satisfies the second preset condition;

回调页面缓存单元,用于基于所述目标待回调页面数据以及页面框架,得到目标回调页面,将所述目标回调页面回调至所述第一缓存区域中的预设位置。A callback page caching unit is configured to obtain a target callback page based on the target page data to be called back and a page frame, and call back the target callback page to a preset position in the first cache area.

在上述各技术方案的基础上,在回调页面获取单元还包括:回调页面判断单元,用于:Based on the above technical solutions, the callback page acquisition unit also includes: a callback page judgment unit, used for:

当检测到所述当前存储信息满足下述至少一项条件时,则从所述本地磁盘中获取目标待回调页面数据:所述当前存储信息中存储的页面个数小于所述第一预设页面个数;所述当前存储信息中存储的各个所占用的总内存小于所述预设存储内存。When it is detected that the current storage information meets at least one of the following conditions, the target page data to be called back is obtained from the local disk: the number of pages stored in the current storage information is less than the first preset page number; the total memory occupied by each of the currently stored information is less than the preset storage memory.

在上述各技术方案的基础上,所述回调页面获取单元还用于:On the basis of the above technical solutions, the callback page acquisition unit is also used to:

获取本地磁盘中存储每个页面数据的存放时刻,根据所述存放时刻以及返回时刻,得到与每个页面数据相对应的时间差值;其中,所述返回时刻为用户触发从当前页面回退到前一个页面操作的时刻;将所述时间差值最小所对应的页面数据,作为目标待回调页面数据。Obtain the storage time of each page data in the local disk, and obtain the time difference corresponding to each page data according to the storage time and return time; wherein, the return time is when the user triggers the return from the current page to The time of the previous page operation; the page data corresponding to the smallest time difference is used as the target page data to be called back.

在上述各技术方案的基础上,所述回调页面缓存单元包括检测页面存储框架子单元,用于:Based on the above technical solutions, the callback page cache unit includes a detection page storage frame subunit, used for:

检测所述缓存池中是否存储页面框架;若是,则获取所述页面框架,并与所述目标待回调页面数据进行渲染处理得到目标待回调页面;若否,则新建立页面框架,并与所述目标待回调页面数据进行渲染处理,得到目标待回调页面。Detect whether the page frame is stored in the cache pool; if so, obtain the page frame and perform rendering processing with the target page data to be called back to obtain the target page to be called back; if not, create a new page frame and combine it with the page frame to be called back. The target page data to be called back is rendered and processed to obtain the target page to be called back.

本公开实施例所提供的页面缓存装置可执行本公开任意实施例所提供的页面缓存方法,具备执行方法相应的功能模块和有益效果。The page caching device provided by the embodiments of the present disclosure can execute the page caching method provided by any embodiment of the present disclosure, and has functional modules and beneficial effects corresponding to the execution method.

值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。It is worth noting that the various units and modules included in the above-mentioned devices are only divided according to functional logic, but are not limited to the above-mentioned divisions, as long as they can achieve the corresponding functions; in addition, the specific names of each functional unit are just In order to facilitate mutual differentiation, it is not used to limit the protection scope of the embodiments of the present disclosure.

实施例六Embodiment 6

下面参考图6,其示出了适于用来实现本公开实施例的电子设备(例如图6中的终端设备或服务器)600的结构示意图。本公开实施例中的终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , a schematic structural diagram of an electronic device (such as the terminal device or server in FIG. 6 ) 600 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablets), PMPs (Portable Multimedia Players), vehicle-mounted terminals (such as Mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG. 6 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置606加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6 , the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601 , which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 606 . The program in the memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.

通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置606;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 607 such as a computer; a storage device 606 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置606被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 606, or from ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are performed.

本公开实施例提供的终端与上述实施例提供的页面缓存方法属于同一发明构思,未在本公开实施例中详尽描述的技术细节可参见上述实施例,并且本公开实施例与上述实施例具有相同的有益效果。The terminal provided by the embodiments of the present disclosure and the page caching method provided by the above embodiments belong to the same inventive concept. Technical details that are not described in detail in the embodiments of the present disclosure can be referred to the above embodiments, and the embodiments of the present disclosure have the same features as the above embodiments. beneficial effects.

实施例七Embodiment 7

本公开实施例七提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述实施例所提供的页面缓存方法。Embodiment 7 of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the page caching method provided in the above embodiment is implemented.

需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), removable Programmed read-only memory (EPROM or flash memory), fiber optics, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.

在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium. (e.g., communications network) interconnection. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.

上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.

上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device:

当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;When an operation triggering entry from the current page to the next page is detected, determine the currently stored information in the first cache area;

当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;When the currently stored information meets the first preset condition, the target page data in the target page in the first cache area and the target page frame are cached respectively;

其中,所述第一缓存区域为系统第一内存。Wherein, the first cache area is the first memory of the system.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages—such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).

附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.

描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,回退操作检测单元还可以被描述为“回退检测单元”。The units involved in the embodiments of the present disclosure can be implemented in software or hardware. The name of the unit does not constitute a limitation on the unit itself under certain circumstances. For example, the rollback operation detection unit may also be described as a "rollback detection unit".

本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

根据本公开的一个或多个实施例,【示例一】提供了一种页面缓存方法,该方法包括:According to one or more embodiments of the present disclosure, [Example 1] provides a page caching method, which includes:

当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;When an operation triggering entry from the current page to the next page is detected, determine the currently stored information in the first cache area;

当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;When the currently stored information meets the first preset condition, the target page data in the target page in the first cache area and the target page frame are cached respectively;

其中,所述第一缓存区域为系统第一内存。Wherein, the first cache area is the first memory of the system.

根据本公开的一个或多个实施例,【示例二】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 2] provides a page caching method, further including:

可选的,所述将所述第一缓存区域内目标页面中的目标页面数据以及页面框架分别进行缓存,包括:Optionally, caching the target page data and page frame in the target page in the first cache area separately includes:

将所述目标页面中的页面数据缓存至本地磁盘、以及将目标页面框架缓存至缓存池中;Cache the page data in the target page to the local disk, and cache the target page frame to the cache pool;

其中,所述缓存池为系统第二内存。Wherein, the cache pool is the second memory of the system.

根据本公开的一个或多个实施例,【示例三】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 3] provides a page caching method, which also includes:

可选的,所述当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存,包括:Optionally, when the currently stored information satisfies the first preset condition, cache the target page data and the target page frame in the target page in the first cache area respectively, including:

当检测到满足下述至少一项条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存:When it is detected that at least one of the following conditions is met, the target page data and target page frame in the target page in the first cache area are cached respectively:

所述当前存储信息中存储的页面个数大于第一预设页面个数;The number of pages stored in the currently stored information is greater than the first preset number of pages;

所述当前存储信息中的存储各个页面所占用的总内存超过预设存储内存;The total memory occupied by storing each page in the current stored information exceeds the preset storage memory;

其中,所述页面中包括页面数据和页面框架。The page includes page data and page frame.

根据本公开的一个或多个实施例,【示例四】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 4] provides a page caching method, which also includes:

可选的,所述当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存,包括:Optionally, when the currently stored information satisfies the first preset condition, cache the target page data and the target page frame in the target page in the first cache area respectively, including:

当所述当前存储信息满足所述第一预设条件时,获取所述第一缓存区域中缓存各个页面的缓存时刻;When the currently stored information satisfies the first preset condition, obtain the cache time of each page cached in the first cache area;

根据所述缓存时刻,确定距离当前时刻的时间差值,将距离当前时刻时间差值最大时所对应的页面作为目标页面,将所述目标页面中的目标页面数据缓存至本地磁盘中,将目标页面框架缓存至所述缓存池中;According to the cache time, the time difference from the current time is determined, the page corresponding to the maximum time difference from the current time is used as the target page, the target page data in the target page is cached to the local disk, and the target page is cached. The page frame is cached in the cache pool;

其中,所述当前时刻为检测到所述当前存储信息满足第一预设条件的时刻。Wherein, the current time is the time when it is detected that the currently stored information satisfies the first preset condition.

根据本公开的一个或多个实施例,【示例五】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 5] provides a page caching method, further including:

可选的,在所述当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据以及目标页面框架分别进行缓存之后,还包括:Optionally, after caching the target page data and the target page frame in the target page in the first cache area respectively when the currently stored information satisfies the first preset condition, the method further includes:

当检测到触发进入下一页面的触控操作时,加载与所述下一页面相对应的待处理数据,并从所述缓存池中加载所述目标页面框架;When a touch operation that triggers entry to the next page is detected, load the data to be processed corresponding to the next page, and load the target page frame from the cache pool;

对所述待处理数据以及所述目标页面框架进行渲染处理,得到所述下一页面。Rendering is performed on the data to be processed and the target page frame to obtain the next page.

根据本公开的一个或多个实施例,【示例六】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 6] provides a page caching method, further including:

可选的,当检测到触发从当前页面回退到前一个页面的操作时,确定所述第一缓存区域中的当前存储信息;Optionally, when an operation triggering a rollback from the current page to the previous page is detected, determine the currently stored information in the first cache area;

当所述当前存储信息满足第二预设条件时,则从所述本地磁盘中获取目标待回调页面数据;When the currently stored information meets the second preset condition, obtain the target page data to be called back from the local disk;

基于所述目标待回调页面数据以及页面框架,得到目标回调页面,将所述目标回调页面回调至所述第一缓存区域中的预设位置。Based on the target page data to be called back and the page frame, a target callback page is obtained, and the target callback page is called back to a preset position in the first cache area.

根据本公开的一个或多个实施例,【示例七】提供了一种页面缓存方法,该方法还包括:According to one or more embodiments of the present disclosure, [Example 7] provides a page caching method, which further includes:

可选的,所述当所述当前存储信息满足第二预设条件时,则从所述本地磁盘中获取目标待回调页面数据,包括:Optionally, when the currently stored information meets the second preset condition, obtaining the target page data to be recalled from the local disk includes:

当检测到所述当前存储信息满足下述至少一项条件时,则从所述本地磁盘中获取目标待回调页面数据:When it is detected that the currently stored information satisfies at least one of the following conditions, the target page data to be called back is obtained from the local disk:

所述当前存储信息中存储的页面个数小于所述第一预设页面个数;The number of pages stored in the currently stored information is less than the first preset number of pages;

所述当前存储信息中存储的各个页面所占用的总内存小于所述预设存储内存。The total memory occupied by each page stored in the current storage information is less than the preset storage memory.

根据本公开的一个或多个实施例,【示例八】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 8] provides a page caching method, further including:

可选的,所述从所述本地磁盘中获取待回调目标页面数据,包括:Optionally, obtaining the target page data to be called back from the local disk includes:

获取本地磁盘中存储每个页面数据的存放时刻,根据所述存放时刻以及返回时刻,得到与每个页面数据相对应的时间差值;其中,所述返回时刻为用户触发从当前页面回退到前一个页面操作的时刻;Obtain the storage time of each page data in the local disk, and obtain the time difference corresponding to each page data according to the storage time and return time; wherein, the return time is when the user triggers the return from the current page to The moment when the previous page was operated;

将所述时间差值最小所对应的页面数据,作为目标待回调页面数据。The page data corresponding to the smallest time difference is used as the target page data to be called back.

根据本公开的一个或多个实施例,【示例九】提供了一种页面缓存方法,还包括:According to one or more embodiments of the present disclosure, [Example 9] provides a page caching method, further including:

可选的,所述基于所述目标待回调页面数据以及页面框架,得到目标回调页面,包括:Optionally, the target callback page is obtained based on the target page data to be called back and the page frame, including:

检测所述缓存池中是否存储页面框架;Detect whether page frames are stored in the cache pool;

若是,则获取所述页面框架,并与所述目标待回调页面数据进行渲染处理得到目标待回调页面;If so, obtain the page frame, and perform rendering processing with the target page data to be called back to obtain the target page to be called back;

若否,则新建立页面框架,并与所述目标待回调页面数据进行渲染处理,得到目标待回调页面。If not, a new page frame is created and rendered with the target page data to be called back to obtain the target page to be called back.

根据本公开的一个或多个实施例,【示例十】提供了一种页面缓存装置,该装置,包括:According to one or more embodiments of the present disclosure, [Example 10] provides a page caching device, which includes:

当前存储信息检测模块,用于当检测到触发从当前页面进入到下一个页面的操作时,确定第一缓存区域内的当前存储信息;The current storage information detection module is used to determine the current storage information in the first cache area when an operation triggering entry from the current page to the next page is detected;

存储模块,用于当所述当前存储信息满足第一预设条件时,则将所述第一缓存区域内目标页面中的目标页面数据,以及目标页面框架分别进行缓存;A storage module configured to cache the target page data and the target page frame in the target page in the first cache area when the currently stored information satisfies the first preset condition;

其中,所述第一缓存区域为系统第一内存。Wherein, the first cache area is the first memory of the system.

以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a description of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the disclosure scope involved in the present disclosure is not limited to technical solutions composed of specific combinations of the above technical features, but should also cover solutions composed of the above technical features or without departing from the above disclosed concept. Other technical solutions formed by any combination of equivalent features. For example, a technical solution is formed by replacing the above features with technical features with similar functions disclosed in this disclosure (but not limited to).

此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Furthermore, although operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or performed in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims (9)

1. The page caching method is characterized by comprising the following steps of:
when detecting an operation of triggering the current page to enter the next page, firstly storing the current page into a first cache area, and then determining current storage information in the first cache area;
when the current storage information meets a first preset condition, respectively caching target page data in a target page in the first cache area and a target page frame;
the first cache area is a first memory of the system;
the caching the target page data in the target page in the first cache area and the target page frame respectively includes:
caching target page data in the target page to a local disk, and caching a target page frame to a cache pool;
The cache pool is a second memory of the system;
the target page is a page to be acquired from the first cache area and stored to a target position, and is not a current page;
the step of entering the next page from the current page is to enter the next page of the current page after triggering a link or a control in the current page;
when detecting an operation triggering to fall back from a current page to a previous page, determining current storage information in the first cache region;
when the current storage information meets a second preset condition, acquiring target page data to be called back from the local disk;
based on the target page data to be called back and the page frame, obtaining a target callback page, and calling back the target callback page to a preset position in the first cache area, wherein the preset position is the first position of each stored page in the first cache area;
when the current stored information meets a first preset condition, respectively caching target page data in a target page in the first cache region and a target page frame, wherein the method comprises the following steps:
when the current storage information meets the first preset condition, acquiring the cache moment of caching each page in the first cache area;
According to the caching moment, determining a time difference value from the current moment, taking a page corresponding to the time difference value from the current moment as a target page, caching target page data in the target page into a local disk, and caching a target page frame into a cache pool;
the current time is the time when the current stored information is detected to meet a first preset condition.
2. The method of claim 1, wherein when the current stored information meets a first preset condition, respectively caching target page data in a target page in the first cache area and a target page frame, including:
when at least one condition is detected to be met, respectively caching target page data in the target pages in the first cache area and the target page frame:
the number of pages stored in the current storage information is larger than the first preset page number;
the total memory occupied by each page stored in the current storage information exceeds a preset storage memory;
the page comprises page data and a page frame.
3. The method according to claim 1, wherein after the target page data in the target page in the first cache area and the target page frame are cached respectively when the current stored information meets a first preset condition, further comprising:
When touch operation triggering to enter a next page is detected, loading data to be processed corresponding to the next page, and loading the target page frame from the cache pool;
and rendering the data to be processed and the target page frame to obtain the next page.
4. The method of claim 1, wherein when the current stored information meets a second preset condition, the obtaining target page data to be recalled from the local disk includes:
when the current stored information is detected to meet at least one of the following conditions, acquiring target page data to be called back from the local disk:
the number of pages stored in the current storage information is smaller than the first preset page number;
and the total memory occupied by each page stored in the current storage information is smaller than the preset storage memory.
5. The method of claim 1, wherein the obtaining target page data to be recalled from the local disk comprises:
acquiring storage time of storing each page data in a local disk, and acquiring a time difference value corresponding to each page data according to the storage time and the return time; the return time is the time when the user triggers the operation of backing to the previous page from the current page;
And taking the page data corresponding to the minimum time difference value as target page data to be called back.
6. The method of claim 1, wherein the obtaining the target callback page based on the target callback page data and the page frame comprises:
detecting whether a page frame is stored in the cache pool;
if yes, acquiring the page frame, and performing rendering processing with the target page data to be called back to obtain a target callback page;
if not, a page frame is newly established, rendering processing is carried out on the page frame and the target page data to be called back, and a target call back page is obtained.
7. A page caching apparatus, comprising:
the current storage information detection module is used for firstly storing the current page into a first cache area when detecting the operation of triggering the current page to enter the next page, and then determining the current storage information in the first cache area;
the storage module is used for respectively caching the target page data in the target page in the first cache area and the target page frame when the current storage information meets a first preset condition;
the first cache area is a first memory of the system;
The storage module is further configured to:
caching page data in the target page to a local disk, and caching a target page frame to a cache pool;
the cache pool is a second memory of the system;
the target page is a page to be acquired from the first cache area and stored to a target position, and is not a current page;
the step of entering the next page from the current page is to enter the next page of the current page after triggering a link or a control in the current page;
a rollback operation detection unit, configured to determine current storage information in the first cache area when an operation triggering rollback from a current page to a previous page is detected;
the callback page obtaining unit is used for obtaining target page data to be callback from the local disk when the current storage information meets a second preset condition;
the callback page caching unit is used for obtaining a target callback page based on the target page data to be callback and a page frame, and callback the target callback page to a preset position in the first caching area, wherein the preset position is the first position of each stored page in the first caching area;
The storage module is further configured to:
when the current storage information meets the first preset condition, acquiring the cache moment of caching each page in the first cache area;
according to the caching moment, determining a time difference value from the current moment, taking a page corresponding to the time difference value from the current moment as a target page, caching target page data in the target page into a local disk, and caching a target page frame into the caching pool;
the current time is the time when the current stored information is detected to meet a first preset condition.
8. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the page caching method of any one of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the page caching method of any one of claims 1-6.
CN201910656376.0A 2019-07-19 2019-07-19 Page caching method and device, electronic equipment and storage medium Active CN110633433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656376.0A CN110633433B (en) 2019-07-19 2019-07-19 Page caching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656376.0A CN110633433B (en) 2019-07-19 2019-07-19 Page caching method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110633433A CN110633433A (en) 2019-12-31
CN110633433B true CN110633433B (en) 2024-02-27

Family

ID=68968916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656376.0A Active CN110633433B (en) 2019-07-19 2019-07-19 Page caching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110633433B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113378085B (en) * 2021-05-31 2023-11-14 游艺星际(北京)科技有限公司 Page loading method, device, terminal and storage medium
CN113742625B (en) * 2021-09-07 2024-10-15 北京百度网讯科技有限公司 Page data processing method, device, equipment and medium
CN113987397A (en) * 2021-10-26 2022-01-28 北京字节跳动网络技术有限公司 Application page control method, device, medium and electronic device
CN114036431B (en) * 2021-12-13 2024-10-29 中国农业银行股份有限公司 Page cache jumping method and device, electronic equipment and storage medium
CN115858987B (en) * 2023-02-21 2023-04-25 成都萌想科技有限责任公司 Method and device for rendering H5 question bank webpage, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729590A (en) * 2008-10-15 2010-06-09 北大方正集团有限公司 Method, system and device for providing web page
CN102368258A (en) * 2011-09-30 2012-03-07 广州市动景计算机科技有限公司 Webpage page caching management method and system
CN103336812A (en) * 2013-06-27 2013-10-02 优视科技有限公司 Webpage resource caching method and device for improving secondary loading efficiency
CN104050253A (en) * 2014-06-12 2014-09-17 北京金山网络科技有限公司 Webpage display method and browser
CN104199684A (en) * 2014-08-13 2014-12-10 百度在线网络技术(北京)有限公司 Browser cold-booting method and device
CN104462455A (en) * 2014-12-16 2015-03-25 北京京东尚科信息技术有限公司 Method and device for displaying and processing network data
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate
CN107943825A (en) * 2017-10-19 2018-04-20 阿里巴巴集团控股有限公司 Data processing method, device and the electronic equipment of page access
CN108153588A (en) * 2016-12-06 2018-06-12 阿里巴巴集团控股有限公司 A kind of page navigation method and device, a kind of memory allocation method and device
CN109558251A (en) * 2017-09-26 2019-04-02 北京京东尚科信息技术有限公司 The method and terminal of page structure information modification
CN109740085A (en) * 2019-01-10 2019-05-10 北京字节跳动网络技术有限公司 A kind of methods of exhibiting of content of pages, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6915384B2 (en) * 2002-03-22 2005-07-05 Microsoft Corporation Multiple-level persisted template caching
GB2546239A (en) * 2015-11-23 2017-07-19 Acadiant Ltd A Method and system for providing and executing web applications

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729590A (en) * 2008-10-15 2010-06-09 北大方正集团有限公司 Method, system and device for providing web page
CN102368258A (en) * 2011-09-30 2012-03-07 广州市动景计算机科技有限公司 Webpage page caching management method and system
CN103336812A (en) * 2013-06-27 2013-10-02 优视科技有限公司 Webpage resource caching method and device for improving secondary loading efficiency
CN104050253A (en) * 2014-06-12 2014-09-17 北京金山网络科技有限公司 Webpage display method and browser
CN104199684A (en) * 2014-08-13 2014-12-10 百度在线网络技术(北京)有限公司 Browser cold-booting method and device
CN104462455A (en) * 2014-12-16 2015-03-25 北京京东尚科信息技术有限公司 Method and device for displaying and processing network data
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate
CN108153588A (en) * 2016-12-06 2018-06-12 阿里巴巴集团控股有限公司 A kind of page navigation method and device, a kind of memory allocation method and device
CN109558251A (en) * 2017-09-26 2019-04-02 北京京东尚科信息技术有限公司 The method and terminal of page structure information modification
CN107943825A (en) * 2017-10-19 2018-04-20 阿里巴巴集团控股有限公司 Data processing method, device and the electronic equipment of page access
CN109740085A (en) * 2019-01-10 2019-05-10 北京字节跳动网络技术有限公司 A kind of methods of exhibiting of content of pages, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110633433A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN110633433B (en) Page caching method and device, electronic equipment and storage medium
CN110633434B (en) Page caching method and device, electronic equipment and storage medium
CN111258736B (en) Information processing methods, devices and electronic equipment
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN112565890B (en) Video clipping method and device, storage medium and electronic equipment
CN111488185B (en) Page data processing method, device, electronic equipment and readable medium
CN111240834B (en) Task execution method, device, electronic equipment and storage medium
CN111258670B (en) Method and device for managing component data, electronic equipment and storage medium
CN110647702B (en) Picture preloading method and device, electronic equipment and readable medium
CN110516159B (en) Information recommendation method and device, electronic equipment and storage medium
US11886798B2 (en) Method and apparatus for obtaining loading time length of image in webpage, and electronic device
CN114416261B (en) Information display method, device, equipment and medium
US20230033164A1 (en) Webpage image monitoring method and apparatus, electronic device, and computer-readable storage medium
CN113934958A (en) Page loading method and device, electronic equipment and computer readable medium
CN113032172B (en) Abnormality detection method and device and electronic equipment
CN115357361A (en) A task processing method, device, equipment and medium
CN111723309B (en) Method and device for web page searching
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN111353296B (en) Article processing method, apparatus, electronic device and computer readable storage medium
CN114064431A (en) Stuck detection method and device, readable medium and electronic equipment
CN113282853B (en) Comment preloading method, device, storage medium and electronic device
WO2022095932A1 (en) Livestreaming room page jumping method and apparatus, livestreaming room page returning method and apparatus, and electronic device
CN116089756A (en) A page component rendering method, device, equipment and medium
CN113176937B (en) Task processing method and device and electronic equipment
CN112799822B (en) Program starting method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230506

Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Applicant after: Beijing youzhuju Network Technology Co.,Ltd.

Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081

Applicant before: Beijing infinite light field technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment