CN106569733A - Processing method and processing device for buffered data - Google Patents
Processing method and processing device for buffered data Download PDFInfo
- Publication number
- CN106569733A CN106569733A CN201510659492.XA CN201510659492A CN106569733A CN 106569733 A CN106569733 A CN 106569733A CN 201510659492 A CN201510659492 A CN 201510659492A CN 106569733 A CN106569733 A CN 106569733A
- Authority
- CN
- China
- Prior art keywords
- data cached
- time
- preset
- case
- difference value
- 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.)
- Pending
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a processing method and a processing device for buffered data, wherein the processing method comprises the steps of inquiring whether the buffered data are stored in an objective memory; on the condition that a fact that buffered data are stored is inquired, reading a first time stamp which represents buffering time of the buffered data, wherein one piece of data corresponds with a first time stamp; determining whether the buffered data exceed preset time according to the first time stamp of the buffered data; and on the condition that a fact that the buffered data exceeds the preset time is determined, eliminating the buffered data. The processing method and the processing device settle a technical problem of incapability of timely eliminating the stale buffered data in prior art.
Description
Technical field
The application is related to computer realm, in particular to a kind of data cached treating method and apparatus.
Background technology
Caching is exactly that the object that program or system Jing often to be called is stored in internal memory, so as to when in use can be quick
Call, it is not necessary to remove the example of the new repetition of establishment again, therefore overhead can be reduced, improve system effectiveness.Specifically
Caching is broadly divided into two big class:
The first kind, file cache, i.e. data are stored on disk in the form of any file.
Equations of The Second Kind, memory cache, that is, an apoplexy due to endogenous wind static state Map is realized, this static Map is carried out conventional
Additions and deletions are looked into.
Because there is the bottleneck of flow between the applications client of server, when reading Large Volume Data, using slow
Deposit to be directly client service, it is possible to reduce the data interaction of client and server, so as to greatly improve program
Performance.But the finite capacity of caching, to how to reclaim expired data cached, the storage of release busy in time
Played for saving cpu resource by critically important effect for space.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the present application provides a kind of data cached treating method and apparatus, at least to solve mistake in prior art
Phase data cached removing technical problem not in time.
According to the one side of the embodiment of the present application, there is provided a kind of data cached processing method, including:Inquiry exists
Whether store in target memory described data cached;Inquire be stored with it is described it is data cached in the case of, read
The very first time stamp of the data cached cache-time is represented, wherein, the data cached quantity is one or many
Bar, data cached correspondence one very first time stamp;According to the data cached very first time
Whether stamp judges described data cached more than Preset Time;And judge it is described it is data cached more than it is described default when
Between in the case of, remove it is described data cached.
Further, judge described data cached whether more than default according to the data cached very first time stamp
Time includes:Calculate the difference of the very first time stamp and the second timestamp for representing current time;And it is relatively more described
The size of difference and preset difference value, wherein, comparing situation of the difference more than or equal to the preset difference value
Under, determine described data cached more than the Preset Time, comparing feelings of the difference less than the preset difference value
Under condition, determine described data cached not less than the Preset Time.
Further, methods described also includes:In the case where the difference is compared less than the preset difference value, sentence
It is disconnected it is described it is data cached whether be called, wherein, while the described data cached quantity called is multiple or one;
And judge it is described it is data cached it is invoked in the case of, the data cached very first time stamp is updated
For second timestamp.
Further, methods described also includes:Modification instruction is received, and according to default described in the modification instruction modification
Difference, wherein, the modification instruction is the instruction of the modification preset difference value.
Further, methods described also includes:Do not store described data cached in the target memory is judged
In the case of, do not store after the data cached moment begins to pass through the object time from inquiring, inquire about again in institute
State whether store in target memory it is described data cached.
According to the another aspect of the embodiment of the present application, a kind of data cached processing meanss are additionally provided, including:First
Whether query unit, store described data cached for inquiry in target memory;Reading unit, in inquiry
To be stored with it is described it is data cached in the case of, read the very first time stamp for representing the data cached cache-time,
Wherein, the data cached quantity is one or more, one very first time of a data cached correspondence
Stamp;Judging unit, for described data cached whether exceed to be judged according to the data cached very first time stamp
Preset Time;And clearing cell, for judge it is described it is data cached more than the Preset Time in the case of,
Remove described data cached.
Further, the judging unit includes:Computing module, for calculating the very first time stamp and representing current
The difference of second timestamp of time;And comparison module, for relatively more described difference and the size of preset difference value, its
In, the difference is being compared more than or equal in the case of the preset difference value, determining described data cached exceed
The Preset Time, compare the difference less than in the case of the preset difference value, determine it is described it is data cached not
More than the Preset Time.
Further, described device also includes:Judge module, for comparing the difference less than the default difference
In the case of value, judge it is described it is data cached whether be called, wherein, while the described data cached quantity called
For multiple or one;And update module, for judge it is described it is data cached it is invoked in the case of, will be described
Data cached very first time stamp is updated to second timestamp.
Further, described device also includes:Receiving unit, for receiving modification instruction, and refers to according to the modification
The order modification preset difference value, wherein, the modification instruction is the instruction of the modification preset difference value.
Further, described device also includes:Second query unit, in the target memory is judged not
Store it is described it is data cached in the case of, do not store the data cached moment and begin to pass through the object time from inquiring
Afterwards, inquire about again and whether store described data cached in the target memory.
In the embodiment of the present application, whether store described data cached in target memory using inquiry;Inquiring
Be stored with it is described it is data cached in the case of, read the very first time stamp for representing the data cached cache-time, its
In, data cached correspondence one very first time stamp;According to the data cached very first time
Whether stamp judges described data cached more than Preset Time;And judge it is described it is data cached more than it is described default when
Between in the case of, remove the data cached mode.When being stored in data cached in target memory by reading
Between stab, calculate the difference of the timestamp and current time stamp, determined according to difference it is data cached whether out of date, for
Out of date is data cached, directly removes, and needs periodically to delete after aged buffered data relative to inquiring about in prior art
It is data cached except this, the purpose of aged buffered data in timely releasing memory is reached, it is achieved thereby that inquiring about automatically simultaneously
Remove expired caching, improve the technique effect of Buffer Utilization, and then it is clear to solve aged buffered data in prior art
Except technical problem not in time.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In accompanying drawing
In:
Fig. 1 is the flow chart of a kind of data cached processing method according to the embodiment of the present application;
Fig. 2 is the flow chart of the optional data cached processing method of another kind according to the embodiment of the present application;And
Fig. 3 is the schematic diagram of a kind of data cached processing meanss according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment
The only embodiment of the application part, rather than the embodiment of whole.Based on the embodiment in the application, ability
The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, all should belong to
The scope of the application protection.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing, "
Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that this
The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except
Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they
Any deformation, it is intended that covering is non-exclusive to be included, and for example, contains process, the side of series of steps or unit
Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
List or other steps intrinsic for these processes, method, product or equipment or unit.
According to the embodiment of the present application, there is provided a kind of embodiment of the method for data cached processing method, explanation is needed
It is can to hold in the such as computer system of one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated
OK, and, although show logical order in flow charts, but in some cases, can be with different from herein
Order perform shown or described step.
Fig. 1 is the flow chart of a kind of data cached processing method according to the embodiment of the present application, as shown in figure 1, should
Method comprises the steps S102 to step S108:
Step S102, inquires about in target memory whether memory buffers data.
Specifically, cached with the data cached and corresponding mode memory buffers data of key assignments in terminal unit
During data query, can be by way of key assignments (key value) be inquired about, in the target memory of terminal unit
Middle inquiry whether memory buffers data, wherein, terminal unit includes the equipment such as computer, flat board and mobile phone.Caching number
According to be user open certain webpage when, the files such as the picture and cookie in webpage are stored in memorizer, or
, when the smart mobile phone of Android system and other systems is when certain webpage is accessed, the storage in the memorizer of mobile phone should for person
The files such as data cached picture and cookie including the webpage.
Step S104, inquire be stored with it is data cached in the case of, read and represent data cached cache-time
The very first time stabs, wherein, data cached quantity is one or more, one very first time of a data cached correspondence
Stamp.
Specifically, when memory buffers data are inquired in target memory using key assignments (key value), will should
Data cached very first time stamp reads out.Wherein, timestamp is a kind of time representation, uniquely identifies certain
The time at one moment.When a certain bar is data cached internal memory is stored in first or a certain bar is data cached is adjusted by user again
Used time, the timestamp at current time is recorded as into the data cached timestamp.
Step S106, judges data cached whether more than Preset Time according to data cached very first time stamp.
Step S108, judge it is data cached more than Preset Time in the case of, remove it is data cached.
Specifically, can determine that whether this is data cached out of date by the very first time stamp of reading cache data, at this
Application embodiment in, Preset Time can be expired time, for data cached, each type it is data cached
It is respectively provided with respective expired time;Preset Time can also be according to the time set by actual demand.
In the embodiment of the present application, timestamp data cached in target memory is stored in by reading, when calculating this
Between stamp and the difference of current time stamp, determined according to difference it is data cached whether out of date, for caching number out of date
According to directly removing, need periodically to delete that this is data cached after aged buffered data relative to inquiring about in prior art, reach
The purpose of aged buffered data in timely releasing memory, it is achieved thereby that inquiring about and removing expired caching automatically, carry
The technique effect of high level cache utilization rate, and then solve the technology that aged buffered data in prior art removes not in time and ask
Topic.
Alternatively, step S106 judges data cached whether more than Preset Time bag according to data cached very first time stamp
Following steps S1061 are included to step S1063, wherein:
Step S1061, calculates the difference of very first time stamp and the second timestamp for representing current time.
Step S1063, compares the size of difference and preset difference value, wherein, difference is being compared more than or equal to pre-
If in the case of difference, determine it is data cached more than Preset Time, in the case where difference is compared less than preset difference value,
Determine data cached not less than Preset Time.
Further, modification instruction is received, and according to modification instruction modification preset difference value, wherein, instruction is changed to repair
Change the instruction of preset difference value.
Specifically, user when a certain webpage is browsed, CPU searches the webpage from the memorizer of memory buffers data
Data, and webpage is opened by the mode for calling this data cached, improve the speed that terminal unit accesses the webpage.
The data cached moment is called all to correspond to a timestamp each time, the timestamp can delay as representing data cached
The very first time stamp of time is deposited, by the second timestamp for calculating data cached very first time stamp and expression current time
Difference, and determine whether this data cached expired according to difference.If difference is said more than in the case of preset difference value
Bright user has not visited in the near future and the data cached related webpage, that is, illustrate that this is data cached out of date.
It should be noted that the size user of concrete preset difference value can arbitrarily select, the value of preset difference value is not unique.Cause
This user can arbitrarily adjust the value of preset difference value, after system receives the modification instruction of user, by original system journey
Preset difference value in sequence replaces with the preset difference value that user chooses again.
Alternatively, the data cached processing method that the application is provided also comprises the steps S1 to step S3:
Step S1, compare difference less than in the case of preset difference value, judge it is data cached whether be called, wherein,
The data cached quantity called simultaneously is multiple or one.
Step S3, judge it is data cached it is invoked in the case of, data cached very first time stamp is updated to into the
Two timestamps.
Specifically, data cached very first time stamp is compared with the difference of the second timestamp with preset difference value and is understood,
In the case that this is data cached not less than Preset Time, illustrate to be stored during the data cached newest webpage of access for user
It is data cached in memorizer, or for Jing often by CPU call it is data cached.Now judge that this is data cached
Whether called by CPU, when judge this it is data cached it is invoked in the case of, by this data cached first when
Between stamp be updated to the second timestamp of current time.Jing often by CPU call it is data cached, user may be expressed as
Jing frequentations are asked and the data cached related webpage or browser, therefore its very first time stamp need to be updated into the nearest moment
Timestamp.
It should be noted that whether having in due to inquiring about target memory is data cached periodically completing, it is impossible to
It is data cached whether real-time query has, then within the time period of the non-query caching data of system, CPU may be called
It is data cached in target memory, now need also exist for for the data cached very first time stamp being updated to CPU calling
The timestamp at the data cached moment.
Alternatively, in target memory is judged in the case of non-memory buffers data, from inquiring non-memory buffers
The moment of data was begun to pass through after the object time, and whether memory buffers data are inquired about in target memory again.
Specifically, if non-memory buffers data in target memory, i.e. the storage content of target memory is sky, Jing
Cross after Preset Time target memory to be inquired about again, wherein, Preset Time is appointing for timing query caching
The time set during business, concrete Preset Time can access the frequency of webpage or browser according to user to be chosen.
Fig. 2 is the flow chart of the optional data cached processing method of another kind according to the embodiment of the present application.
Step S202, inquires about in target memory whether memory buffers data.Inquire it is data cached in the case of,
Execution step S204 is to step S214;Do not inquire it is data cached in the case of, from inquiring non-memory buffers number
According to moment begin to pass through the object time after, return execution step S202, whether inquire about again in target memory
Memory buffers data.
Step S204, reads the very first time stamp of the cache-time for representing data cached, wherein, data cached quantity
For one or more, one very first time stamp of a data cached correspondence.
Step S206, calculates the difference of very first time stamp and the second timestamp for representing current time.
Step S208, compares the size of difference and preset difference value.In the case of difference is compared less than preset difference value, hold
Row step S210, in the case of difference is compared more than preset difference value, execution step S214.
Step S210, judge it is data cached whether be called, wherein, while the data cached quantity called is for multiple
Or one.When judge it is data cached it is invoked in the case of, execution step S212 otherwise terminates the operation of program.
Step S212, by data cached very first time stamp the second timestamp is updated to.
Step S214, removes data cached.
Specifically, by way of key assignments (key value) inquiry, the inquiry in the target memory of terminal unit is
No memory buffers data, if memory buffers data, by key assignments (key value) the data cached time are read
Stamp, i.e. very first time stamp, and calculate the difference of the very first time stamp and second timestamp of time at that time.When calculating
The difference shows that this is data cached out of date, directly by the data cached removing more than in the case of preset difference value;If
The difference is less than preset difference value, shows that this is data cached not out of date, now, judge successively not out of date data cached be
It is no have by CPU call it is data cached, if having by CPU call it is data cached, by this data cached first
Update of time stamp be the second timestamp, if this it is data cached be not called upon, terminate program.
The embodiment of the present application additionally provides a kind of data cached processing meanss, and the processing meanss are mainly used in performing this Shen
Please the data cached processing method that provided of embodiment the above, the embodiment of the present application is provided caching below
The processing meanss of data do concrete introduction.
Fig. 3 is the schematic diagram of a kind of data cached processing meanss according to the embodiment of the present application, as shown in figure 3, should
Data cached processing meanss mainly include the first query unit 10, reading unit 20, judging unit 30 and remove single
Unit 40, wherein:
First query unit, for inquiry in target memory whether memory buffers data.
Specifically, cached with the data cached and corresponding mode memory buffers data of key assignments in terminal unit
During data query, can be by way of key assignments (key value) be inquired about, by the first query unit in terminal
Whether memory buffers data are inquired about in the target memory of equipment, wherein, terminal unit includes computer, flat board and handss
The equipment such as machine.It is data cached be user open certain webpage when, the files such as the picture and cookie in webpage are deposited
In being stored in memorizer, or when the smart mobile phone of Android system and other systems is when certain webpage is accessed, in mobile phone
Memorizer in memory buffers data including the webpage picture and the file such as cookie.
Reading unit, for inquire be stored with it is data cached in the case of, read when representing data cached caching
Between very first time stamp, wherein, data cached quantity is one or more, a data cached correspondence one first
Timestamp.
Specifically, when memory buffers data are inquired in target memory using key assignments (key value), by reading
Take unit to read out the data cached very first time stamp.Wherein, timestamp is a kind of time representation, only
One ground identifies the time at a certain moment.When a certain bar is data cached internal memory is stored in first or a certain bar is data cached another
It is secondary when being called by user, the timestamp at current time is recorded as into the data cached timestamp.
Judging unit, for judging data cached whether more than Preset Time according to data cached very first time stamp.
Clearing cell, for judge it is data cached more than Preset Time in the case of, remove it is data cached.
Specifically, can determine that whether this is data cached out of date by the very first time stamp of reading cache data, at this
Application embodiment in, Preset Time can be expired time, for data cached, each type it is data cached
It is respectively provided with respective expired time;Preset Time can also be according to the time set by actual demand.
In the embodiment of the present application, timestamp data cached in target memory is stored in by reading, when calculating this
Between stamp and the difference of current time stamp, determined according to difference it is data cached whether out of date, for caching number out of date
According to, directly remove, need periodically to delete that this is data cached after aged buffered data relative to inquiring about in prior art,
Reached the purpose of aged buffered data in timely releasing memory, it is achieved thereby that inquire about automatically and remove expired caching,
The technique effect of Buffer Utilization is improved, and then solves aged buffered data removing technology not in time in prior art
Problem.
Alternatively, judging unit 30 includes:Computing module and comparison module, wherein:
Computing module is used to calculate the difference of very first time stamp and the second timestamp for representing current time.
Comparison module, for comparing the size of difference and preset difference value, wherein, it is more than or equal to difference is compared
In the case of preset difference value, determine data cached more than Preset Time, comparing situation of the difference less than preset difference value
Under, determine data cached not less than Preset Time.
Further, the data cached processing meanss that the application is provided also include:Receiving unit, for receiving modification
Instruction, and according to modification instruction modification preset difference value, wherein, modification instruction is the instruction of modification preset difference value.
Specifically, user when a certain webpage is browsed, CPU searches the webpage from the memorizer of memory buffers data
Data, and webpage is opened by the mode for calling this data cached, improve the speed that terminal unit accesses the webpage.
The data cached moment is called all to correspond to a timestamp each time, the timestamp can delay as representing data cached
The very first time stamp of time is deposited, by the second timestamp for calculating data cached very first time stamp and expression current time
Difference, and determine whether this data cached expired according to difference.If difference is said more than in the case of preset difference value
Bright user has not visited in the near future and the data cached related webpage, that is, illustrate that this is data cached out of date.
It should be noted that the size user of concrete preset difference value can arbitrarily select, the value of preset difference value is not unique.Cause
This user can arbitrarily adjust the value of preset difference value, after system receives the modification instruction of user, by original system journey
Preset difference value in sequence replaces with the preset difference value that user chooses again.
Alternatively, the data cached processing meanss that the application is provided also include judge module and update module, wherein:
Judge module, for compare difference less than in the case of preset difference value, judge it is data cached whether be called,
Wherein, while the data cached quantity called is multiple or one.
Update module, for judge it is data cached it is invoked in the case of, data cached very first time is stabbed more
It is newly the second timestamp.
Specifically, data cached very first time stamp is compared with the difference of the second timestamp with preset difference value and is understood,
In the case that this is data cached not less than Preset Time, illustrate to be stored during the data cached newest webpage of access for user
It is data cached in memorizer, or for Jing often by CPU call it is data cached.Now judge that this is data cached
Whether called by CPU, when judge this it is data cached it is invoked in the case of, by this data cached first when
Between stamp be updated to the second timestamp of current time.Jing often by CPU call it is data cached, user may be expressed as
Jing frequentations are asked and the data cached related webpage or browser, therefore its very first time stamp need to be updated into the nearest moment
Timestamp.
It should be noted that whether having in due to inquiring about target memory is data cached periodically completing, it is impossible to
It is data cached whether real-time query has, then within the time period of the non-query caching data of system, CPU may be called
It is data cached in target memory, now need also exist for for the data cached very first time mistake being updated to CPU calling
The timestamp at the data cached moment.
The data cached processing meanss that the application is provided also include:Second query unit, for judging that target deposits
In reservoir in the case of non-memory buffers data, from the moment for inquiring non-memory buffers data the object time is begun to pass through
Afterwards, whether memory buffers data are inquired about in target memory again.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through
Mode realize.Wherein, device embodiment described above is only schematic, such as division of described unit,
Can be a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to
On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme
Purpose.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or when using using in the form of SFU software functional unit,
During a computer read/write memory medium can be stored in.Based on such understanding, the technical scheme essence of the application
On all or part of prior art is contributed part in other words or the technical scheme can be with software product
Form is embodied, and the computer software product is stored in a storage medium, including some instructions are used so that one
Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the application
State all or part of step of method.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The above is only the preferred implementation of the application, it is noted that for the ordinary skill people of the art
For member, on the premise of without departing from the application principle, some improvements and modifications can also be made, these improve and moisten
Decorations also should be regarded as the protection domain of the application.
Claims (10)
1. a kind of data cached processing method, it is characterised in that include:
Whether inquiry stores described data cached in target memory;
Inquire be stored with it is described it is data cached in the case of, read and represent the data cached cache-time
The very first time stamp, wherein, the data cached quantity be one or more, one is described data cached right
Answer a very first time stamp;
Judge described data cached whether more than Preset Time according to the data cached very first time stamp;
And
Judge it is described it is data cached more than the Preset Time in the case of, remove it is described data cached.
2. processing method according to claim 1, it is characterised in that during according to described data cached described first
Between stamp described data cached whether include more than Preset Time judged:
Calculate the difference of the very first time stamp and the second timestamp for representing current time;And
The size of the comparison difference and preset difference value, wherein, the difference is being compared more than or equal to institute
In the case of stating preset difference value, determine described data cached more than the Preset Time, comparing the difference
In the case of less than the preset difference value, determine described data cached not less than the Preset Time.
3. processing method according to claim 2, it is characterised in that methods described also includes:
The difference is being compared less than described data cached whether adjusted in the case of the preset difference value, judged
With, wherein, while the described data cached quantity called is multiple or one;And
Judge it is described it is data cached it is invoked in the case of, by the data cached very first time stamp
It is updated to second timestamp.
4. processing method according to claim 2, it is characterised in that methods described also includes:
Modification instruction is received, and according to preset difference value described in the modification instruction modification, wherein, the modification refers to
Make to change the instruction of the preset difference value.
5. processing method according to claim 1, it is characterised in that methods described also includes:
Do not store in the target memory is judged it is described it is data cached in the case of, do not store from inquiring
Whether the data cached moment was begun to pass through after the object time, inquire about again in the target memory
Store described data cached.
6. a kind of data cached processing meanss, it is characterised in that include:
Whether the first query unit, store described data cached for inquiry in target memory;
Reading unit, for inquire be stored with it is described it is data cached in the case of, read and represent the caching
The cache-time of data the very first time stamp, wherein, the data cached quantity be one or more, one
The very first time stamp of the data cached correspondence one;
Judging unit, for according to the data cached very first time stamp judge it is described it is data cached whether
More than Preset Time;And
Clearing cell, for judge it is described it is data cached more than the Preset Time in the case of, remove institute
State data cached.
7. processing meanss according to claim 6, it is characterised in that the judging unit includes:
Computing module, for calculating the difference of the very first time stamp and the second timestamp for representing current time;
And
Comparison module, for relatively more described difference and the size of preset difference value, wherein, comparing the difference
In the case of more than or equal to the preset difference value, determine it is described data cached more than the Preset Time,
Compare the difference described data cached default not less than described less than in the case of the preset difference value, determining
Time.
8. processing meanss according to claim 7, it is characterised in that described device also includes:
Judge module, in the case where the difference is compared less than the preset difference value, judging described slow
Whether deposit data is called, wherein, while the described data cached quantity called is multiple or one;And
Update module, for judge it is described it is data cached it is invoked in the case of, will be described data cached
The very first time stamp is updated to second timestamp.
9. processing meanss according to claim 7, it is characterised in that described device also includes:
Receiving unit, for receiving modification instruction, and according to preset difference value described in the modification instruction modification, its
In, the modification instruction is the instruction of the modification preset difference value.
10. processing meanss according to claim 6, it is characterised in that described device also includes:
Second query unit, for not storing the data cached situation in the target memory is judged
Under, do not store after the data cached moment begins to pass through the object time from inquiring, inquire about again in institute
State whether store in target memory it is described data cached.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510659492.XA CN106569733A (en) | 2015-10-12 | 2015-10-12 | Processing method and processing device for buffered data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510659492.XA CN106569733A (en) | 2015-10-12 | 2015-10-12 | Processing method and processing device for buffered data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106569733A true CN106569733A (en) | 2017-04-19 |
Family
ID=58508664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510659492.XA Pending CN106569733A (en) | 2015-10-12 | 2015-10-12 | Processing method and processing device for buffered data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106569733A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107845251A (en) * | 2017-11-13 | 2018-03-27 | 珠海慧信微电子有限公司 | Meter register method based on bandwidth carrier communication |
CN109032795A (en) * | 2018-07-17 | 2018-12-18 | 天津猎鹰网络技术有限公司 | The processing method and processing device of data buffer storage, storage medium, electronic device |
CN109379305A (en) * | 2018-11-28 | 2019-02-22 | 上海银赛计算机科技有限公司 | A kind of data distributing method, device, server and storage medium |
CN109408469A (en) * | 2018-09-05 | 2019-03-01 | 中国平安人寿保险股份有限公司 | Stale data document handling method, device, electronic device and storage medium |
CN109447741A (en) * | 2018-10-16 | 2019-03-08 | 翟红鹰 | Improve method, system, equipment and the storage medium of trading processing speed |
CN109558065A (en) * | 2017-09-25 | 2019-04-02 | 杭州海康威视系统技术有限公司 | Data-erasure method and distributed memory system |
CN110008223A (en) * | 2019-03-08 | 2019-07-12 | 平安科技(深圳)有限公司 | Method, apparatus, computer equipment and the storage medium of asynchronous refresh caching |
CN110018900A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Internal memory processing method and device, electronic equipment, computer readable storage medium |
CN110019340A (en) * | 2017-12-08 | 2019-07-16 | 北京新媒传信科技有限公司 | Data storage/read method, apparatus and system |
CN110018902A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Internal memory processing method and device, electronic equipment, computer readable storage medium |
CN110032691A (en) * | 2018-12-05 | 2019-07-19 | 香港乐蜜有限公司 | Data cached sweep-out method, device and equipment |
CN110413917A (en) * | 2019-08-01 | 2019-11-05 | 山东浪潮通软信息科技有限公司 | A method of realizing web report data caching |
CN111061758A (en) * | 2018-10-16 | 2020-04-24 | 杭州海康威视数字技术股份有限公司 | Data storage method, device and storage medium |
CN111125175A (en) * | 2019-12-20 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Service data query method and device, storage medium and electronic device |
CN112579652A (en) * | 2020-12-28 | 2021-03-30 | 咪咕文化科技有限公司 | Method and device for deleting cache data, electronic equipment and storage medium |
CN113535716A (en) * | 2021-06-23 | 2021-10-22 | 浙江浙大中控信息技术有限公司 | Efficient data storage and query management method |
CN113609031A (en) * | 2021-07-08 | 2021-11-05 | 深圳市晨北科技有限公司 | Data cleaning model construction method, data cleaning method, related equipment and medium |
CN114138840A (en) * | 2021-12-08 | 2022-03-04 | 中国建设银行股份有限公司 | Data query method, device, equipment and storage medium |
CN115390752A (en) * | 2022-08-10 | 2022-11-25 | 中科豪联(杭州)技术有限公司 | Multi-disk cache file management method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1997015A (en) * | 2006-11-24 | 2007-07-11 | 华为技术有限公司 | Cache application method and device, and file transfer system |
CN101714161A (en) * | 2009-12-23 | 2010-05-26 | 上海全景数字技术有限公司 | Cache device and method for embedded browser |
CN102314397A (en) * | 2011-09-23 | 2012-01-11 | 浙江大学 | Method for processing cache data block |
CN102333079A (en) * | 2011-02-25 | 2012-01-25 | 北京兴宇中科科技开发股份有限公司 | Method for clearing disk space |
CN103412825A (en) * | 2013-05-21 | 2013-11-27 | 青岛海信移动通信技术股份有限公司 | Internal storage releasing method and device |
CN104516828A (en) * | 2013-09-27 | 2015-04-15 | 伊姆西公司 | Method and device for removing caching data |
CN104715020A (en) * | 2015-02-13 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Cache data deleting method and server |
-
2015
- 2015-10-12 CN CN201510659492.XA patent/CN106569733A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1997015A (en) * | 2006-11-24 | 2007-07-11 | 华为技术有限公司 | Cache application method and device, and file transfer system |
CN101714161A (en) * | 2009-12-23 | 2010-05-26 | 上海全景数字技术有限公司 | Cache device and method for embedded browser |
CN102333079A (en) * | 2011-02-25 | 2012-01-25 | 北京兴宇中科科技开发股份有限公司 | Method for clearing disk space |
CN102314397A (en) * | 2011-09-23 | 2012-01-11 | 浙江大学 | Method for processing cache data block |
CN103412825A (en) * | 2013-05-21 | 2013-11-27 | 青岛海信移动通信技术股份有限公司 | Internal storage releasing method and device |
CN104516828A (en) * | 2013-09-27 | 2015-04-15 | 伊姆西公司 | Method and device for removing caching data |
CN104715020A (en) * | 2015-02-13 | 2015-06-17 | 腾讯科技(深圳)有限公司 | Cache data deleting method and server |
Cited By (27)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558065A (en) * | 2017-09-25 | 2019-04-02 | 杭州海康威视系统技术有限公司 | Data-erasure method and distributed memory system |
CN109558065B (en) * | 2017-09-25 | 2020-11-27 | 杭州海康威视系统技术有限公司 | Data deleting method and distributed storage system |
CN107845251A (en) * | 2017-11-13 | 2018-03-27 | 珠海慧信微电子有限公司 | Meter register method based on bandwidth carrier communication |
CN110019340A (en) * | 2017-12-08 | 2019-07-16 | 北京新媒传信科技有限公司 | Data storage/read method, apparatus and system |
CN110018900A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Internal memory processing method and device, electronic equipment, computer readable storage medium |
CN110018900B (en) * | 2018-01-10 | 2023-01-24 | Oppo广东移动通信有限公司 | Memory processing method and device, electronic equipment and computer readable storage medium |
CN110018902A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Internal memory processing method and device, electronic equipment, computer readable storage medium |
WO2019137258A1 (en) * | 2018-01-10 | 2019-07-18 | Oppo广东移动通信有限公司 | Memory processing method, electronic device and computer readable storage medium |
CN109032795A (en) * | 2018-07-17 | 2018-12-18 | 天津猎鹰网络技术有限公司 | The processing method and processing device of data buffer storage, storage medium, electronic device |
CN109408469A (en) * | 2018-09-05 | 2019-03-01 | 中国平安人寿保险股份有限公司 | Stale data document handling method, device, electronic device and storage medium |
CN109447741A (en) * | 2018-10-16 | 2019-03-08 | 翟红鹰 | Improve method, system, equipment and the storage medium of trading processing speed |
CN111061758A (en) * | 2018-10-16 | 2020-04-24 | 杭州海康威视数字技术股份有限公司 | Data storage method, device and storage medium |
CN111061758B (en) * | 2018-10-16 | 2023-10-20 | 杭州海康威视数字技术股份有限公司 | Data storage method, device and storage medium |
CN109379305A (en) * | 2018-11-28 | 2019-02-22 | 上海银赛计算机科技有限公司 | A kind of data distributing method, device, server and storage medium |
CN110032691A (en) * | 2018-12-05 | 2019-07-19 | 香港乐蜜有限公司 | Data cached sweep-out method, device and equipment |
CN110008223A (en) * | 2019-03-08 | 2019-07-12 | 平安科技(深圳)有限公司 | Method, apparatus, computer equipment and the storage medium of asynchronous refresh caching |
CN110413917A (en) * | 2019-08-01 | 2019-11-05 | 山东浪潮通软信息科技有限公司 | A method of realizing web report data caching |
CN110413917B (en) * | 2019-08-01 | 2023-01-24 | 浪潮通用软件有限公司 | Method for realizing web report data caching |
CN111125175B (en) * | 2019-12-20 | 2023-09-01 | 北京奇艺世纪科技有限公司 | Service data query method and device, storage medium and electronic device |
CN111125175A (en) * | 2019-12-20 | 2020-05-08 | 北京奇艺世纪科技有限公司 | Service data query method and device, storage medium and electronic device |
CN112579652A (en) * | 2020-12-28 | 2021-03-30 | 咪咕文化科技有限公司 | Method and device for deleting cache data, electronic equipment and storage medium |
CN112579652B (en) * | 2020-12-28 | 2024-04-09 | 咪咕文化科技有限公司 | Method and device for deleting cache data, electronic equipment and storage medium |
CN113535716A (en) * | 2021-06-23 | 2021-10-22 | 浙江浙大中控信息技术有限公司 | Efficient data storage and query management method |
CN113609031A (en) * | 2021-07-08 | 2021-11-05 | 深圳市晨北科技有限公司 | Data cleaning model construction method, data cleaning method, related equipment and medium |
CN113609031B (en) * | 2021-07-08 | 2024-03-29 | 深圳市晨北科技有限公司 | Data cleaning model construction method, data cleaning method, related equipment and medium |
CN114138840A (en) * | 2021-12-08 | 2022-03-04 | 中国建设银行股份有限公司 | Data query method, device, equipment and storage medium |
CN115390752A (en) * | 2022-08-10 | 2022-11-25 | 中科豪联(杭州)技术有限公司 | Multi-disk cache file management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106569733A (en) | Processing method and processing device for buffered data | |
CN106202112B (en) | CACHE DIRECTORY method for refreshing and device | |
US7890488B2 (en) | System and method for caching posting lists | |
CN105718455B (en) | A kind of data query method and device | |
CN107357896A (en) | Expansion method, device, system and the data base cluster system of data-base cluster | |
CN108183947A (en) | Distributed caching method and system | |
CN101557427A (en) | Method for providing diffluent information and realizing the diffluence of clients, system and server thereof | |
CN105989076A (en) | Data statistical method and device | |
CN103177042B (en) | A kind of method and device of web page browsing | |
CN102170479A (en) | Updating method of Web buffer and updating device of Web buffer | |
CN103500213B (en) | Page hot-spot resource updating method and device based on pre-reading | |
CN105302840B (en) | A kind of buffer memory management method and equipment | |
CN108595503A (en) | Document handling method and server | |
CN105095495B (en) | A kind of distributed file system buffer memory management method and system | |
CN104794228A (en) | Search result providing method and device | |
CN109446222A (en) | A kind of date storage method of Double buffer, device and storage medium | |
CN106407224A (en) | Method and device for file compaction in KV (Key-Value)-Store system | |
CN110990372A (en) | Dimensional data processing method and device and data query method and device | |
CN107786668B (en) | Weight caching website method based on CDN (content delivery network) | |
CN109240607A (en) | A kind of file reading and device | |
CN104956341A (en) | Data migration method, device and processor | |
CN106022874A (en) | Order data processing method, order system, and flow charging system | |
CN104346345A (en) | Data storage method and device | |
CN110399096A (en) | Metadata of distributed type file system caches the method, apparatus and equipment deleted again | |
CN109542612A (en) | A kind of hot spot keyword acquisition methods, device and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |