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

Qt-based file cache data control method and system

A technology for data control and file caching, applied in the computer field, can solve problems such as increasing the threshold for use, and achieve the effects of strong scalability, simple and fast development, and improved convenience.

Pending Publication Date: 2021-03-16
福建福讯人才服务有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, common cache databases include relational databases such as MySQL and Oracle, and non-relational databases such as Redis. They have the advantages of good performance, free and open source, but the disadvantage is that they need to install services. The prerequisite for users to use the product is to install the database. Increased the threshold for product use
[0003] SQLite, a file-type database that does not require the installation of services, is most suitable as a client-side cache database, but when caching complex objects or adding a new cache object, it cannot be cached through key-value as easily as Redis database, but needs Write complex SQL statements

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
  • Qt-based file cache data control method and system
  • Qt-based file cache data control method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a Qt-based file cache data control method of the present invention includes the following steps:

[0038] Step S10, define an entity structure, and overload the operator function (QDataStream) of the entity structure;

[0039] Step S20, assigning the data to be cached to the entity structure;

[0040] Step S30, converting the data of the entity structure into stream data (QDataStream) based on the operator function, and obtaining corresponding byte data (QByteArray) based on the stream data;

[0041] Step S40 , saving the byte data as a cache file through the key, and encrypting the cache file for multiplexing by the cache operation.

[0042] The step S10 is specifically:

[0043] Define an entity structure, overload the stream input function and stream output function of the entity structure; the stream input function sets the input sequence through the operator ">>"; the stream output functio...

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 provides a Qt-based file cache data control method and system in the technical field of computers, and the method comprises the following steps: S10, defining an entity structure, and reloading an operator function of the entity structure; s20, assigning data to be cached to the entity structure; s30, converting the data of the entity structure into streaming data based on an operator function, and obtaining corresponding byte data based on the streaming data; and S40, storing the byte data as a cache file, and encrypting the cache file. The invention has the advantage that the convenience of file caching is greatly improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a Qt-based file cache data control method and system. Background technique [0002] At present, common cache databases include relational databases such as MySQL and Oracle, and non-relational databases such as Redis. They have the advantages of good performance, free and open source, but the disadvantage is that they need to install services. The prerequisite for users to use the product is to install the database. Increased the threshold of product use. [0003] SQLite, a file-type database that does not require the installation of services, is most suitable as a client-side cache database, but when caching complex objects or adding a new cache object, it cannot be cached through key-value as easily as Redis database, but needs Write complex SQL statements. [0004] Therefore, how to provide a Qt-based file cache data control method and system to improve the convenience of ...

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): G06F16/172G06F21/60G06F21/62
CPCG06F16/172G06F21/602G06F21/6209G06F2221/2107
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