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

Memory access method and device supporting data persistence

An access method and access device technology, which are applied in database indexing, electronic digital data processing, structured data retrieval, etc., can solve the problems that data cannot be permanently stored, limited applicable scenarios, and data loss, so as to avoid data loss. , to ensure high-speed read and write, to achieve the effect of load

Inactive Publication Date: 2015-05-06
广州亦云信息技术股份有限公司
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It reduces the number of times to read the database by caching data and objects in memory, thereby improving the speed of dynamic, database-driven websites, but Memcached is only a memory caching system, and data cannot be stored permanently. When it is closed, the data will be completely lost, which is not suitable for high security needs, which greatly limits its applicable scenarios
Berkeleydb is a high-performance key-value, embedded database. The database is lightweight and efficient. It can support thousands of concurrent threads to operate the database at the same time. It supports up to 256TB of data. It supports cluster functions, data synchronization, cluster high availability and many other functions. But Berkeleydb is An embedded database, which only provides API, does not have a friendly network interface and access protocol, cluster addition, deletion, cluster configuration, and startup have strict requirements. It is still far away from the actual use environment and must go through a lot of development and testing.

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
  • Memory access method and device supporting data persistence

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Below, in conjunction with accompanying drawing and specific embodiment, the present invention is described further:

[0034] In the present invention, Memcached is used as the basis, the external interface of Memcached is retained, the internal data storage mechanism of Memcached is modified, and the storage interface of Berkeleydb is used to realize the persistence of data. Berkeleydb is used as a persistence component to obtain a support for data persistence. In-memory Key-value database system. Based on the database system, refer to figure 1 A memory access method supporting data persistence of the present invention comprises the following steps:

[0035] S1: Receive the data request from the client, and judge whether the data request conforms to the standard protocol, if so, execute S2, otherwise reject the data request.

[0036] After receiving the data request, it will use the Memcached protocol to analyze the data request. If the analysis is successful, it mea...

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 memory access method and a device supporting data persistence. The method comprises the following steps of S1, receiving a data request of a client end, judging whether the data request meets a standard protocol or not, if yes, carrying out S2, and if not, rejecting the data request; S2, judging whether the data request is a data reading request or a data writing request, if the data request is the data writing request, carrying out S3, and if the data request is the data reading request, carrying out S4; S3, analyzing the data writing request, building a corresponding data structure according to data to be written, and calling a storage interface to store the data to be written to a data storage end; S4, analyzing the data reading request, and calling the storage interface to acquire corresponding data from the data storage end. Memcached and Berkeleydb are combined to obtain a memory Key-value database system supporting data persistence, and the database system is utilized to carry out data access service, so that high-speed reading and writing of data can be ensured; persistence modules are combined to form a cluster example, so that the storage of the data is more stable.

Description

technical field [0001] The invention relates to a data access method based on a memory object cache system supporting data persistence. Background technique [0002] Memcached is a high-performance memory object caching system for dynamic web applications to reduce database load. It reduces the number of times to read the database by caching data and objects in memory, thereby improving the speed of dynamic, database-driven websites, but Memcached is only a memory caching system, and data cannot be stored permanently. When it is closed, the data will be completely lost, which is not suitable for high security requirements, which greatly limits its applicable scenarios. Berkeleydb is a high-performance key-value, embedded database. The database is lightweight and efficient. It can support thousands of concurrent threads to operate the database at the same time. It supports up to 256TB of data. It supports cluster functions, data synchronization, cluster high availability and...

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
IPC IPC(8): G06F17/30
CPCG06F16/22
Inventor 叶耀荣
Owner 广州亦云信息技术股份有限公司
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