Unlock instant, AI-driven research and patent intelligence for your innovation.

Component caching method and device

A component and caching technology, applied in the Internet field, can solve problems such as poor caching effect

Pending Publication Date: 2021-03-26
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of this specification provides a component caching method and device, which solves the problem in the prior art that the caching mode of the page is artificially set based on experience, resulting in poor caching effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Component caching method and device
  • Component caching method and device
  • Component caching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]In order to make the purpose, technical solution and advantages of this specification clearer, the technical solution of this application will be clearly and completely described below in conjunction with specific embodiments of this specification and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the description, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.

[0057] The technical solutions provided by various embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0058] When configuring the caching method of the page in the prior art, the developer usually selects a caching method from several commonly used caching methods based on experience based on t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a component caching method and device, and the method comprises the steps: determining each component obtaining request received in a preset duration, and determining the component features of each component according to the determined component obtaining requests; and then, for each component, determining a caching mode of the component according to the component characteristics of the component and a preset caching rule; and finally, when a component acquisition request which is sent by the terminal and is used for acquiring the component is received, returning component data carrying the caching mode of the component to the terminal, so that the terminal caches the component data of the component in the caching mode. By determining the component features including the acquisition times of the components and the data volume of the components, and determining the caching mode of the components based on the component features, the determined caching mode of thecomponents better meets the requirements of users, the caching mode of each component is set more reasonably, and the caching effect is better.

Description

technical field [0001] The present application relates to the technical field of the Internet, in particular to a component caching method and device. Background technique [0002] At present, in the front-end development process, in order to save page loading time and optimize page loading performance, a caching scheme is usually set up, that is, the pages visited by the user are cached locally in the browser or in the proxy server, so that when subsequent users visit again When viewing this page, the page data of the page can be extracted from the local or proxy server, reducing the time required to obtain the page data from the backend server. [0003] Common caching solutions mainly include local storage (LocalStorage, LS), local database storage (IndexDataBase, IDB) and proxy server storage (Service Worker, SW). Among them, LS is the browser's local cache, which usually has a small storage space and a fast read and write speed. IDB is a non-relational database on the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F8/71G06F16/2455
CPCG06F8/71G06F9/44526G06F16/24552G06F16/24564
Inventor 雷超张健严焜杰龙佳文田泱张昊阳陈凯鑫
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More