CN104331470B - Data processing method and system based on caching mechanism - Google Patents

Data processing method and system based on caching mechanism Download PDF

Info

Publication number
CN104331470B
CN104331470B CN201410606859.7A CN201410606859A CN104331470B CN 104331470 B CN104331470 B CN 104331470B CN 201410606859 A CN201410606859 A CN 201410606859A CN 104331470 B CN104331470 B CN 104331470B
Authority
CN
China
Prior art keywords
data
caching
signature
module
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410606859.7A
Other languages
Chinese (zh)
Other versions
CN104331470A (en
Inventor
胡偲皓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Epoch Information Technology Co Ltd Of Eastcom Of Shenzhen
Original Assignee
Epoch Information Technology Co Ltd Of Eastcom Of Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Epoch Information Technology Co Ltd Of Eastcom Of Shenzhen filed Critical Epoch Information Technology Co Ltd Of Eastcom Of Shenzhen
Priority to CN201410606859.7A priority Critical patent/CN104331470B/en
Publication of CN104331470A publication Critical patent/CN104331470A/en
Application granted granted Critical
Publication of CN104331470B publication Critical patent/CN104331470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/0802Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
    • G06F12/0893Caches characterised by their organisation or structure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6281Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database at program execution time, where the protection is within the operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data processing method based on caching mechanism, when data cached, the data of reading database and in the data read, interpolation data is signed, and the data added with data signature then are stored in into caching;When updating the data, the data signature of corresponding data during first checking caches, if verifying data signature is by carrying out Data Matching, updating variance data into database, and update corresponding data in caching;If verifying data signature is not by abandoning updating.The present invention also provides a kind of data handling system based on caching mechanism.The beneficial effects of the invention are as follows the security that sensitive data can be ensured while effectively lifting sensitive data reading efficiency.

Description

Data processing method and system based on caching mechanism
Technical field
The present invention relates to data processing field, more particularly to a kind of data processing method and system based on caching mechanism.
Background technology
With the rapid development of software engineering, software users have higher requirement to the high efficiency and security of program.
Existing software solution, typically simply the nonsensitive data for needing frequently to use is cached, and will Caching updates once at regular intervals, and remaining be possible to the sensitive data of Reusability then read every time from database and Caching is not stored in, prevents sensitive data to be tampered with this, and then protects the security of sensitive data.
But existing software solution, when facing the situation that sensitive data is frequently used, caching can not be passed through To improve efficiency, the operational efficiency of software is had a strong impact on, so as to which the reading high efficiency and security of sensitive data can not be taken into account.
The content of the invention
In order to solve the problems, such as reading high efficiency and security that existing software can not take into account sensitive data, the present invention provides A kind of data processing method and system based on caching mechanism, it can be ensured while effectively lifting sensitive data reading efficiency The security of sensitive data.
The embodiment of the present invention provides a kind of data processing method based on caching mechanism, for the number in processing data storehouse According to, when data cached, the data of reading database and the interpolation data signature in the data read, then by this added with number Caching is stored according to the data of signature;When updating the data, the data signature of corresponding data during first checking caches, if verifying data signature By then carrying out Data Matching, updating variance data into database, and update corresponding data in caching;If data label Name checking is not by abandoning then updating.
In above-described embodiment, in data cached and data during updating the data in monitoring caching and caching is removed Measure the data not being used again in small and special time.
The embodiment of the present invention also provides a kind of data handling system based on caching mechanism, for the number in processing data storehouse According to, being somebody's turn to do the data handling system based on caching mechanism includes data cache module, data update module and data signature module, The frequently-used data that the data cache module is used in cache database;The data update module is used to update the data in storehouse Data;The data signature module is used for before the frequently-used data is buffered data cache module first to the frequently-used data Interior interpolation data signature, update the data and first verified before data in storehouse in data cache module in the data update module Data signature in the corresponding data of caching.
In above-described embodiment, in addition to cache monitor module, for monitoring that it is small that data in caching and removing are measured in caching And the data not being used again in special time.
The embodiment of the present invention also provides another data processing method based on caching mechanism, in processing data storehouse Data, including step:After the request for receiving digital independent, whether in the buffer the requested data read are checked, if by The data that request is read in the buffer, then do not read data from database, added in the data read from database Sign and be stored in caching;After the instruction for receiving data renewal, data signature is first verified, if verifying data signature is by entering Row Data Matching, difference update into database and is updated into caching:If data verification signature verification is not by abandoning more Newly.
In above-described embodiment, check the requested data read whether in the buffer when, if the requested data read In the buffer, then check whether the data of the requested reading in caching are newest, if the requested number read in caching According to not being newest, then data are read from database, requested data read in matching renewal caching and in the updated Data in interpolation data sign;If the requested data read in caching are newest, directly read in caching Data.
In above-described embodiment, in digital independent and renewal process monitoring caching in data and remove caching in measure it is small And the data not being used again in special time.
The embodiment of the present invention also provides another data handling system based on caching mechanism, in processing data storehouse Data, should data handling system based on caching mechanism include data cache module, data read module, data update module with And data signature module, the frequently-used data that the data cache module is used in cache database;The data read module is used In reading data from database or data cache module;The data update module is used to update the data the data in storehouse;Institute Data signature module is stated to be used to first add into the frequently-used data before the frequently-used data is buffered data cache module Data signature, the data update module update the data first verified before data in storehouse it is buffered in data cache module Data signature in corresponding data.
In above-described embodiment, in addition to cache monitor module, for monitoring that it is small that data in caching and removing are measured in caching And the data not being used again in special time.
The data processing method and system based on caching mechanism of the above embodiment of the present invention, can effectively lifted it is quick The security of sensitive data is ensured while feeling data reading performance using redundancy.In addition, monitoring caching in data and remove caching in measure The data not being used again in small and special time, holding time of the data to caching can be reduced, lift caching Utilization rate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of data cached flow chart element of data processing method based on caching mechanism according to embodiments of the present invention Figure.
Fig. 2 is that a kind of data processing method based on caching mechanism according to embodiments of the present invention updates the data flow frame Figure.
Fig. 3 is a kind of functional block diagram of data handling system based on caching mechanism according to embodiments of the present invention.
Fig. 4 is the digital independent flow of another data processing method based on caching mechanism according to embodiments of the present invention Block diagram.
Fig. 5 is the data more new technological process of another data processing method based on caching mechanism according to embodiments of the present invention Block diagram.
Fig. 6 is the functional block diagram of another data handling system based on caching mechanism according to embodiments of the present invention.
Embodiment
Make further more detailed description to technical scheme with reference to the accompanying drawings and detailed description.It is aobvious So, described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.Based in the present invention Embodiment, the every other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made, The scope of protection of the invention should all be belonged to.
Fig. 1, Fig. 2 are a kind of FB(flow block)s of data processing method based on caching mechanism according to embodiments of the present invention, The data processing method based on caching mechanism is used for data in processing data storehouse.
Referring to Fig. 1, when data cached, the data of first reading database, the then interpolation data in the data read Signature, then the data added with data signature are stored in caching.It is first corresponding in checking caching when updating the data referring to Fig. 2 The data signature of data, if verifying data signature by, carry out Data Matching, by variance data renewal into database, and Corresponding data in renewal caching;If verifying data signature is not by abandoning updating.
Preferably, it is data cached and during updating the data should data processing method based on caching mechanism also monitor it is slow The data deposited simultaneously are removed in caching and measure the data not being used again in small and special time.
Fig. 3 is a kind of functional block diagram of data handling system 10 based on caching mechanism according to embodiments of the present invention. The data that the data handling system 10 based on caching mechanism is used in processing data storehouse, it includes data cache module 11, number According to update module 12 and data signature module 13.
The frequently-used data that the data cache module 11 is used in cache database.The data update module 12 is used for more Data in new database.The data signature module 13 be used for the frequently-used data be buffered into data cache module 11 it Preceding elder generation interpolation data into the frequently-used data is signed, and the data signature module 13 is additionally operable in the data update module 12 more The data signature in corresponding data buffered in data cache module 11 is first verified in new database before data.
Preferably, the data handling system 10 based on caching mechanism also includes cache monitor module 14 in above-described embodiment, The data not being used again in small and special time are measured for monitoring the data in caching and removing in caching.
Fig. 4, Fig. 5 are the flow chart elements of another data processing method based on caching mechanism according to embodiments of the present invention Figure, it is somebody's turn to do the data processing method based on caching mechanism and is used for data in processing data storehouse.The data processing based on caching mechanism Method includes step:
Referring to Fig. 4, after the request for receiving digital independent, whether in the buffer the requested data read are checked, if The requested data read in the buffer, then do not read data from database, added in the data read from database Name of endorsing simultaneously is stored in caching;
Referring to Fig. 5, after the instruction for receiving data renewal, data signature is first verified, if verifying data signature is by entering Row Data Matching, difference update into database and is updated into caching:If data verification signature verification is not by abandoning more Newly.
Preferably, referring to checked described in Fig. 4 requested data read whether in the buffer when, read if requested In the buffer, then whether the data of the requested reading in inspection caching are newest, read if this in caching is requested for data Data be not newest, then read data from database, requested data read in matching renewal caching and more Interpolation data is signed in data after new;If the requested data read in caching are newest, caching is directly read Interior data.
It is furthermore preferred that in digital independent and renewal process monitoring caching in data and remove caching in measure it is small and special Fix time the interior data not being used again.
Fig. 6 is the functional module of another data handling system 20 based on caching mechanism according to embodiments of the present invention Figure.The data handling system 20 based on caching mechanism be used for processing data storehouse in data, it include data cache module 21, Data read module 25, data update module 22 and data signature module 23.
The frequently-used data that the data cache module 21 is used in cache database;The data read module 25 be used for from Data are read in database or data cache module 21;The data update module 22 is used to update the data the data in storehouse;Institute Data signature module 23 is stated first to add into the frequently-used data before the frequently-used data is buffered data cache module 21 Data signature, the data signature module 23 are additionally operable to before data in updating the data storehouse first verify in data cache module 21 Data signature in buffered corresponding data.
Preferably, being somebody's turn to do the data handling system 20 based on caching mechanism also includes cache monitor module 24, slow for monitoring The data deposited simultaneously are removed in caching and measure the data not being used again in small and special time.
Advantageously, the data processing method and system based on caching mechanism, can be read in effectively lifting sensitive data The security of sensitive data is ensured while taking efficiency.In addition, monitoring caching in data and remove caching in measure it is small and specific The data not being used again in time, holding time of the data to caching can be reduced, lift the utilization rate of caching.
Above disclosed is only the preferred embodiment in the embodiment of the present invention, can not limit this hair with this certainly Bright interest field, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (5)

  1. A kind of 1. data processing method based on caching mechanism, for the data in processing data storehouse, it is characterised in that:
    When data cached, the data of reading database and the interpolation data signature in the data read, then this is added with The data deposit caching of data signature;
    When updating the data, the data signature of corresponding data during first checking caches, if verifying data signature passes through, data are carried out Match somebody with somebody, update variance data into database, and update corresponding data in caching;If verifying data signature is not by putting Abandon renewal;
    The data in caching are monitored in data buffer storage number and renewal process and remove to measure in caching does not have in small and special time The data being used again.
  2. 2. a kind of data handling system based on caching mechanism, should be based on caching mechanism for the data in processing data storehouse Data handling system includes data cache module, data update module and data signature module, and the data cache module is used Frequently-used data in cache database;
    The data update module is used to update the data the data in storehouse;
    The data signature module is used for before the frequently-used data is buffered data cache module first to the frequently-used data Interior interpolation data signature, update the data and first verified before data in storehouse in data cache module in the data update module Data signature in the corresponding data of caching;Wherein, if verifying data signature is by the way that data update module carries out data Match somebody with somebody, update variance data into database, and update corresponding data in caching;If verifying data signature is not by putting Abandon renewal;
    Also include cache monitor module, do not have for monitoring the data in caching and removing to measure in small and special time in caching The data being used again.
  3. A kind of 3. data processing method based on caching mechanism, for the data in processing data storehouse, including step:
    After the request for receiving digital independent, whether in the buffer the requested data read are checked, if requested reading Data in the buffer, then do not read data from database, are added in the data read from database and sign and be stored in Caching;
    Receive data renewal instruction after, first verify data signature, if verifying data signature by, carry out Data Matching, Difference update into database and is updated into caching:If data verification signature verification is not by abandoning updating;
    Data in digital independent and renewal process in monitoring caching and removing measured in caching in small and special time not by The data reused.
  4. 4. the data processing method based on caching mechanism as claimed in claim 3, it is characterised in that check requested reading Data whether in the buffer when, if the requested data read are in the buffer, this for checking in caching requested is read Whether data are newest, if the requested data read in caching are not newest, data read from database, matching is more Interpolation data is signed in the requested data read in new caching and data in the updated;If this in caching is requested The data of reading are newest, then directly read the data in caching.
  5. 5. a kind of data handling system based on caching mechanism, should be based on caching mechanism for the data in processing data storehouse Data handling system includes data cache module, data read module, data update module and data signature module,
    The frequently-used data that the data cache module is used in cache database;
    The data read module is used to read data from database or data cache module;
    The data update module is used to update the data the data in storehouse;
    The data signature module is used for before the frequently-used data is buffered data cache module first to the frequently-used data Interior interpolation data signature, update the data and first verified before data in storehouse in data cache module in the data update module Data signature in the corresponding data of caching;Wherein, if verifying data signature is by the way that data update module carries out data Match somebody with somebody, update variance data into database, and update corresponding data in caching;If verifying data signature is not by putting Abandon renewal;
    Also include cache monitor module, do not have for monitoring the data in caching and removing to measure in small and special time in caching The data being used again.
CN201410606859.7A 2014-10-31 2014-10-31 Data processing method and system based on caching mechanism Active CN104331470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410606859.7A CN104331470B (en) 2014-10-31 2014-10-31 Data processing method and system based on caching mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410606859.7A CN104331470B (en) 2014-10-31 2014-10-31 Data processing method and system based on caching mechanism

Publications (2)

Publication Number Publication Date
CN104331470A CN104331470A (en) 2015-02-04
CN104331470B true CN104331470B (en) 2017-12-05

Family

ID=52406197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410606859.7A Active CN104331470B (en) 2014-10-31 2014-10-31 Data processing method and system based on caching mechanism

Country Status (1)

Country Link
CN (1) CN104331470B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107958018B (en) * 2017-10-17 2021-06-11 北京百度网讯科技有限公司 Method and device for updating data in cache and computer readable medium
CN111177197B (en) * 2019-12-26 2023-03-14 北京仁科互动网络技术有限公司 Cache processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990526B1 (en) * 2000-05-22 2006-01-24 Pointred Technologies, Inc. Method and apparatus for web caching
CN1804831A (en) * 2005-01-13 2006-07-19 陈翌 Network cache management system and method
WO2010062091A2 (en) * 2008-11-25 2010-06-03 Samsung Electronics Co., Ltd. Method and system for validating service information (si) and program specific information (psi) in broadcast technologies
CN103221961A (en) * 2010-10-20 2013-07-24 超威半导体公司 Method and apparatus including architecture for protecting multi-ser sensitive code and data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962737B2 (en) * 2007-11-21 2011-06-14 Dell Products L.P. Methods, media and apparatus for booting diskless systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6990526B1 (en) * 2000-05-22 2006-01-24 Pointred Technologies, Inc. Method and apparatus for web caching
CN1804831A (en) * 2005-01-13 2006-07-19 陈翌 Network cache management system and method
WO2010062091A2 (en) * 2008-11-25 2010-06-03 Samsung Electronics Co., Ltd. Method and system for validating service information (si) and program specific information (psi) in broadcast technologies
CN103221961A (en) * 2010-10-20 2013-07-24 超威半导体公司 Method and apparatus including architecture for protecting multi-ser sensitive code and data

Also Published As

Publication number Publication date
CN104331470A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN104090790B (en) Two-chip scheme firmware updating method for safety terminal
US8869264B2 (en) Attesting a component of a system during a boot process
US9088574B2 (en) Subscriber identity module-based authentication of a wireless device and applications stored thereon
KR20160147622A (en) Method and device for identificating a file
CN105357204B (en) Method and device for generating terminal identification information
WO2019169760A1 (en) Test case range determining method, device, and storage medium
CN104573435A (en) Method for terminal authority management and terminal
RU2011114863A (en) METHOD AND DEVICE FOR DETECTING Malicious Software
CN102663281A (en) Method and device for detecting malicious software
CN112559354A (en) Front-end code specification detection method and device, computer equipment and storage medium
CN111160879B (en) Hardware wallet and security improving method and device thereof
CN104331470B (en) Data processing method and system based on caching mechanism
CN107729746A (en) A kind of application program of installation tamper resistant method and system based on digital signature
CN112383554B (en) Interface flow abnormity detection method and device, terminal equipment and storage medium
CN107656750A (en) Update of plug-in method and device
US20190205219A1 (en) Data recovery with authenticity
CN109271414A (en) A kind of auditing method of the database local communication based on IPC
CN107316176A (en) The control method and device of declaration form processing
CN106843947A (en) The treating method and apparatus of aacode defect
WO2022179120A1 (en) Gateway interception method and apparatus, electronic device and storage medium
CN108829575B (en) Test case recommendation method, electronic device and readable storage medium
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
US9348861B2 (en) Capturing change data of deferred updates
CN113434254A (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN111813518A (en) Robot early warning method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant