Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data access method and device and storage medium

A data access and data sharing technology, applied in the field of data processing, can solve the problem of lack of multi-process access support in SharedPreferences

Active Publication Date: 2019-11-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, SharedPreferences lacks support for multi-process access, so how to implement multi-process data access has become one of the technical problems to be solved in the prior art

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 access method and device and storage medium
  • Data access method and device and storage medium
  • Data access method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0093] In order to support multi-process data access while realizing permanent data storage, the embodiments of the present invention provide a data access method, device and storage medium.

[0094] First, some terms involved in the embodiments of the present invention are described to facilitate the understanding of those skilled in the art.

[0095] Cross-process key-value permanent storage: key is a keyword, value is a value, also known as a key-key-value pair; key-value storage refers to a component that can access, store, and update the corresponding value through a specified key value ;Permanent storage means that the stored content is permanently valid, and will not lose data due to the exit of the App (application program) or the shutdown of the device; cross-process means that the storage component can be accessed by multiple processes at the same time, and the data update generated by one process can be updated by multiple processes. processes are active at the same...

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 access method, a data access device and a storage medium, which are used for realizing multi-process data access while realizing permanent storage of data. The data access method includes: establishing a memory mapping file for storing shared data, wherein the memory mapping file is established by an Android application program by applying for a memory space from anAndroid operating system, and all processes in the Android application program share the memory space applied for the Android operating system; and when each process needs to write shared data into the memory mapping file, the method comprises the following steps: obtaining a write lock of the memory mapping file from a system, the write lock not allowing other processes in the application to readdata from a memory block in which the shared data is written or write data into the memory block; writing the shared data into the memory mapping file; and when writing of the shared data is finished, releasing the writing lock.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a data access method, device and storage medium. Background technique [0002] SharedPreferences (save user preference parameters) storage method is a way to store lightweight data in Android. SharedPreferences storage is mainly used to store some simple configuration information. For example, when you need to save some user preference parameters, such as whether to automatically log in, whether to remember the account password, whether to connect to the Internet under Wi-Fi, etc., you can use SharedPreferences storage. It uses key-value pairs to submit and save data, and the saved data is stored in the local / data / data / <package name> / shares_prefs folder in xml format. [0003] However, SharedPreferences lacks support for multi-process access, so how to implement multi-process data access has become one of the technical problems to be solved in the prior ar...

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/52
CPCG06F9/524
Inventor 凌国
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products