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

Data read-write method and device

A technology of data reading and writing and data writing, which is applied in the computer field and can solve problems such as reduced page efficiency and affecting user experience

Pending Publication Date: 2020-07-07
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, for APP, when multiple pages need to load such time-limited shared data, it will increase the data content requested by the page and increase the data traffic used by users. At the same time, due to the reloading of requested data The time is much longer than the time to load data locally. Therefore, this method reduces the efficiency of page loading and affects the user experience

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
  • Data read-write method and device
  • Data read-write method and device
  • Data read-write method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0029] The embodiment of the present invention provides a method for reading and writing data. The method has no restrictions on the time-sensitive shared data stored locally, and when using the shared data in the local storage, it can feed back effective shared data to avoid sharing The problem of page data loading error caused by data invalidation. Specific steps such as figure 1 As shown, the method includes:

[0030] Step 101. Generate da...

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 data read-write method and a data read-write device, which mainly aim to enable local storage to correctly read and write shared data with timeliness and improve a local application range of the shared data. The data read-write method is mainly characterized by comprising the steps of: generating to-be-stored data according to shared data and aging parameters thereof in awrite-in request; writing the to-be-stored data into a local storage by using a local storage interface to obtain shared storage data, wherein the name of the shared storage data is configured as thename of the shared data; when a reading request of the shared data is received, extracting the shared storage data of the corresponding name by using a local reading interface according to the name of the shared data in the reading request; analyzing a timeliness parameter in the shared storage data; and determining data content in response to the reading request by utilizing the timeliness parameter. The data read-write method is used for reading and writing the data in the local storage.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for reading and writing data. Background technique [0002] At present, most third-party applications (Applications, APPs) in smart terminals adopt the HTML5+webview development method. When the user performs page switching, the APP will create a new webview and load the developed HTML5 page to display to the user. When there are multiple HTML5 pages in the APP that need to share data, it can be realized through localstorage, that is, the data to be shared is stored in localstorage through javascript, and when the page is switched, the data to be shared is taken out from localstorage using javascript. However, the current localstorage storage technology in HTML5 has no time limit, which makes it impossible to determine the validity of the shared data with a time limit during the page switching process, resulting in inaccurate information of the loaded shared...

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/451G06F16/957
CPCG06F9/451
Inventor 程水强潘柳
Owner ALIBABA GRP HLDG LTD