CN110018912A - Data cache method, storage medium, equipment and the system for having informing function - Google Patents
Data cache method, storage medium, equipment and the system for having informing function Download PDFInfo
- Publication number
- CN110018912A CN110018912A CN201810023322.6A CN201810023322A CN110018912A CN 110018912 A CN110018912 A CN 110018912A CN 201810023322 A CN201810023322 A CN 201810023322A CN 110018912 A CN110018912 A CN 110018912A
- Authority
- CN
- China
- Prior art keywords
- cache pool
- data
- related side
- cache
- function
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
The invention discloses a kind of data cache methods for having informing function, it is related to field of data storage, comprising steps of cache pool of the building one with informing function, and one is constructed for obtaining the acquisition function of cache pool object in cache pool, one, which is defined, in obtaining function is used for the constructed fuction of cache pool object-instantiated;A variable is defined in cache pool in advance, when needing to obtain cache pool object, first judge whether cache pool object has instantiated according to the value of variable, if, the cache pool object of instantiation is then directly acquired, if it is not, then calling constructed fuction by cache pool object-instantiated, the value of variable is changed, then obtains the cache pool object of instantiation;When the data stored in the cache pool object of instantiation change, the related side that need to be informed is notified.The shared of cache pool data not only may be implemented in data cache method of the invention, but also when there is data variation, can notify related side at any time, economize on resources, and notice is timely.
Description
Technical field
The present invention relates to field of data storage, and in particular to a kind of data cache method for having informing function, storage are situated between
Matter, equipment and system.
Background technique
It usually requires that data are carried out the operation such as to store in the development process of Android client, it is in the prior art, right
The storage of data selects very conventional mode to be stored, the storage mode of routine are as follows: be written directly from file or
Person deletes data.Also, for the variation of timely learning data, it will usually a thread be arranged and periodically supervised in a manner of training in rotation
Whether control and inquiry data content are altered, to achieve the purpose that monitoring data changes, and are led in time according to monitored results
Know the related side for needing monitoring data to change.
However, not only realization rate is very cumbersome for above-mentioned this method, but also needs continuous poll monitoring, to the money of system
Source expense is also very big, simultaneously as there are the periods of training in rotation for training in rotation, thus found that the content changing of data has certain prolong
Late, occur notifying defect not in time.
Summary of the invention
In view of the deficiencies in the prior art, it is slow that the purpose of the present invention is to provide a kind of data for having informing function
Method is deposited, not only may insure that the object for only having an instantiation in cache pool exists, thus realize the shared of cache pool data,
And when the caching or deletion for there are data in cache pool, related side can be notified at any time, monitors, economizes on resources without poll, led to
Know in time.
To achieve the above objectives, the technical solution adopted by the present invention is that:
A kind of data cache method having informing function, comprising steps of
Cache pool of the building one with informing function, and one is constructed for obtaining obtaining for cache pool object in the cache pool
Function is taken, one is defined in the acquisition function and is used for the constructed fuction of cache pool object-instantiated;
The variable whether an expression cache pool instantiates is defined in cache pool in advance, when needing to obtain cache pool
When object, first judge whether cache pool object has instantiated according to the value of the variable, if so, directly acquiring instantiation
Cache pool object changes the value of the variable if it is not, then calling the constructed fuction by the cache pool object-instantiated, then
Obtain the cache pool object of instantiation;
When the data stored in the cache pool object of instantiation change, the related side that need to be informed is notified.
Based on the above technical solution, it before the related side that notice need to inform, further comprises the steps of:
One is defined in cache pool object for storing the collection object of related side's information, and constructs one in the collection
The registration function for increasing related side in object and one is closed for removing the anti-registration letter of related side in the collection object
Number;
When related side, which needs to be apprised of the data stored in cache pool object, whether to change, then the registration is called
Function increases to the related side in collection object, when whether related side does not need to be apprised of the data that store in cache pool object
When changing, then the anti-registration function is called to remove related side from collection object.
Based on the above technical solution, comprising steps of a notification protocol is pre-defined, when the cache pool pair of instantiation
When changing as the data of middle storage, related side is notified to carry out respective handling according to the notification protocol.
Based on the above technical solution, it further comprises the steps of: and defines a HashMap type in data buffer storage pond
Caching warehouse, when needing to carry out data buffer storage, stored in the caching warehouse corresponding data name and with the data
The corresponding data value of title, when being deleted, deleted in the caching warehouse corresponding data name and with it is described
The corresponding data value of data name.
The present invention also provides a kind of storage mediums, are stored thereon with computer program, and the computer program is processed
The step of above method is realized when device executes.
The present invention also provides a kind of electronic equipment, including memory, processor and be stored on the memory and
The computer program run on the processor, the processor realize the step of the above method when executing the computer program
Suddenly.
The present invention also provides a kind of data buffering systems for having informing function, the system comprises creation module, sentence
Disconnected module and notification module;
The creation module is used to construct one the cache pool with informing function, and constructs one for obtaining the cache pool
The acquisition function of middle cache pool object defines one in the acquisition function and is used for the construction letter of cache pool object-instantiated
Number;
The judgment module in cache pool for defining a variable in advance, when needing to obtain cache pool object, first
Judge whether cache pool object has instantiated according to the value of the variable, if so, directly acquiring the cache pool pair of instantiation
As if it is not, then calling the constructed fuction by the cache pool object-instantiated, changing the value of the variable, then obtain example
The cache pool object of change;
The notification module is used for when the data stored in the cache pool object of instantiation change, and notice needs to inform
Related side.
It based on the above technical solution, further include a setup module and processing module;
The setup module is used for before the related side that notice need to inform, one is defined in cache pool object for storing
The collection object of related side's information, and one is constructed for increasing registration function, the Yi Jiyi of related side in the collection object
For removing the anti-registration function of related side in the collection object;
The processing module is used to need to be apprised of whether the data stored in cache pool object change as related side
When, then call the registration function to increase to the related side in collection object, when related side does not need to be apprised of cache pool pair
When whether changing as the data of middle storage, then the anti-registration function is called to remove related side from collection object.
Based on the above technical solution, the system also includes a protocol modules, and the protocol module is for preparatory
A notification protocol is defined, it is logical according to the notification protocol when the data stored in the cache pool object of instantiation change
Know that related side carries out respective handling.
It based on the above technical solution, further include a memory module, the memory module is used in data buffer storage pond
The middle caching warehouse for defining a HashMap type stores corresponding when needing to carry out data buffer storage in the caching warehouse
Data name and data value corresponding with the data name deleted in the caching warehouse when being deleted
Corresponding data name and data value corresponding with the data name.
Compared with the prior art, the advantages of the present invention are as follows:
(1) data cache method for having informing function of the invention not only may insure only have a reality in cache pool
The object of exampleization exists, thus realize the shared of cache pool data, and when the caching or deletion for having data in cache pool, it can
Related side is notified at any time, monitors, economizes on resources without poll, and notice is timely.
(2) data cache method for having informing function of the invention, related side can be according to whether monitoring datas
Variation increase in collection object or deleted from collection object, when the cache pool data in cache pool object become
When change, the related side in collection object is notified, to realize the control to related side, implementation method is simple.
(3) data cache method for having informing function of the invention, defines caching warehouse in data buffer storage pond, when need
When carrying out data buffer storage, corresponding data name and data value corresponding with data name are stored in caching warehouse, when need
When being deleted, corresponding data name and data value corresponding with data name are deleted in caching warehouse, to realize
The storage and deletion of data, realization rate is simple, and extracts as needed to data convenient for subsequent.
Detailed description of the invention
Fig. 1 is the flow chart for having the data cache method of informing function in the embodiment of the present invention;
Fig. 2 is the connection block diagram of electronic equipment in the embodiment of the present invention.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
Shown in Figure 1, the embodiment of the present invention provides a kind of data cache method for having informing function, comprising steps of
S1: cache pool of the building one with informing function, and one is constructed for obtaining obtaining for cache pool object in cache pool
Function is taken, one is defined in obtaining function and is used for the constructed fuction of cache pool object-instantiated.The specific implementation process is as follows:
Construction one is used to obtain the acquisition function of cache pool object in cache pool in cache pool, is defined as follows shown:
public SCDataManager getDataCacheInstance();
The function name of the acquisition function is getDataCacheInstance, printenv information, return value in the function
It is the cache pool object of a SCDataManager type.And the constructed fuction for defining SCDataManager instantiation is new
SCDataManager()。
S2: defining a variable in cache pool in advance, and the variable is for expressing whether the cache pool instantiates, when need
When obtaining cache pool object, first judge whether cache pool object has instantiated according to the value of variable, if so, directly acquiring
The cache pool object of instantiation changes the value of variable if it is not, then calling constructed fuction by cache pool object-instantiated, then obtains
The cache pool object of instantiation.
That is, the variable count of int (integer) type is defined in cache pool in advance, and the count variable is initial
Value is assigned a value of 1, when the value of count variable is 1, then it represents that have and can only have a cache pool object in cache pool, i.e.,
It can only once be instantiated.In the present embodiment, when the value of count variable is 1, illustrate that cache pool object not yet carries out reality
Exampleization.
And array SCDataManager [count] object is defined in SCDataManager class, it is deposited in the object
Storage be SCDataManager type object array, and by the number in the array be set as definition count value number
Amount.
How to be realized inside getDataCacheInstance function and finally returns that a SCDataManager object
Process are as follows: whether the value for first determining whether count is to show that cache pool object is uninstantiated if being equal to 1 equal to 1, just logical
The constructed fuction new SCDataManager () of SCDataManager is crossed to instantiate one new SCDataManager pairs
As, and the operation for subtracting one is carried out to the value of count after the completion of instantiation, SCDataManager pairs finally will just generated
As being returned, that is, get the cache pool object of latest instance.If the value of count is equal to 0, generation is directly returned
SCDataManager object directly acquires the cache pool object of instantiation, without instantiating again again through constructed fuction
One new object, so as to ensure that the object for only having an instantiation in cache pool exists, to realize cache pool data
It is shared.
In addition to this, similarly, count variable initial value can also be assigned a value of 0, indicates slow when count variate-value is 0
It deposits pond object not yet to be instantiated, and after instantiation, add to the value of count one operation, when count variate-value
Indicate that cache pool object has been instantiated, and after having instantiated, when needing to obtain cache pool object, is directly read when being 1
The cache pool object of instantiation.Or other any modes, as long as can judge that cache pool object is according to the value of variable count
It is no to have instantiated.
S3: when the data stored in the cache pool object of instantiation change, the related side that need to be informed is notified.At this
In embodiment, related side should be understood to need to inform the whether changed side of storing data in cache pool object, that is, need
The side for wanting monitoring data to change.
The data cache method for having informing function in embodiments of the present invention further comprises the steps of: pre-defined notice association
It is corresponding to notify that related side carries out according to notification protocol when the data stored in the cache pool object of instantiation change for view
Processing.
Specific notification protocol is as follows:
Before the related side that notice need to inform, further comprise the steps of:
One is defined in cache pool object for storing the collection object of related side's information, and constructs one in set pair
As the middle registration function for increasing related side and one in collection object for removing the anti-registration function of related side;
When related side, which needs to be apprised of the data stored in cache pool object, whether to change, then registration function is called
The related side is increased in collection object, when related side does not need to be apprised of whether the data stored in cache pool object occur
When variation, then anti-registration function is called to remove related side from collection object, to realize the control to related side, realization side
Method is simple.
Specifically, defined in SCDataManager class one for store the set List of related side's information <
Notification protocol defined above is stored in INotificaDataChanged > object listAll, collection object listAll
Content and each related side's information.
In inventive embodiments, registration function in collection object for increasing related side, and anti-registration function is for collecting
It closes in object and removes related side.
Specific registration function is defined as follows:
public void registerData(INotificaDataChanged a);
The function name of registration function are as follows: the parameter in registerData, registerData function is one
The object a of INotificaDataChanged type.
When whether a certain related side needs to be apprised of the data stored in cache pool object change, then needing should
Related side increases in collection object.Determine whether listAll is sky first, if it is the empty construction letter for then passing through registration function
Number is by the example, if being not sky, is in listAll set by calling listAll.contains (a) method to determine
It is no to have contained the related side, if having contained the related side, do not have to continue to add the correlation into collection object
Fang Liao, if not including the related side, by calling the add method in listAll that object a is added to collection object
In listAll, the registration of related side can be completed, which is increased in collection object.
Specific anti-registration function is defined as follows:
publiv void unRegisterData(INotificaDataChanged b);
The function name of anti-registration function are as follows: the parameter in unRegisterData, unRegisterData function is one
The object b of a INotificaDataChanged type.
When whether a certain related side no longer needs to be apprised of the data stored in cache pool object change, then need
The related side is removed from collection object.First determine whether listAll whether be it is empty, if it is it goes without doing any processing empty just,
If being not sky, need to determine whether to be not necessarily to do any processing if not including the related side comprising the related side, if packet
Containing the related side, then need to call remove (b) method in listAll to remove the related side from collection object, from
And the anti-registration of related side is completed, which is removed from collection object.
The data cache method for having informing function in embodiments of the present invention is further comprised the steps of: in data buffer storage Chi Zhongding
The caching warehouse of an adopted HashMap type stores corresponding data name when needing to carry out data buffer storage in caching warehouse
Claim and data value corresponding with data name, when being deleted, deleted in caching warehouse corresponding data name and
Data value corresponding with data name, to realize the storage and deletion of data, realization rate is simple, and convenient for subsequent according to need
Data are extracted.
Specifically: defined in SCDataManager class the caching warehouse HashMap of a HashMap type <
String, Object > dataPool, the key in the HashMap object are the objects of a String type, and value is one
The object of Object type.
Since the value of caching warehouse to be arranged to the object of Object type in embodiments of the present invention, Object object exists
It can be used to carrying any object in Java, it can for receiving the data of any object.Simultaneously as HashMap
It is the storage that data are carried out by key-value pair, key is the object of a String type, can also be understood to Object
" alias " of object, or can be regarded as the title of data.
When needing to carry out data buffer storage, can determine whether caching warehouse dataPool is sky first, if dataPool
Be it is empty, then need to instantiate the caching warehouse object, by calling the constructed fuction of HashMap to carry out reality to it
Exampleization.After dataPool object is instantiated out, by call dataPool object in put (key,
Value) for method by a target cache into caching warehouse, key herein is data name, and value is data value, and every
The corresponding data name of a data value, the two have corresponding relationship.
If the capped situation of data may be will appear since key value is the same, the key value of different objects is wanted
Ensure different.In order to ensure the uniqueness of key value, the definition of key is all placed in SCDataManager class and is determined
Justice, and uniqueness, such as key1, key2, key3 etc. at the end of key plus a number to ensure key, to realize
Data buffer storage.
When needing data to delete, it is also desirable to first carry out empty judgement to dataPool object and illustrate buffering chamber if it is sky
There is no any data in library, at this time without doing any delete operation;If being not sky, needed at this time by calling dataPool pairs
Remove (key) method as in deletes data, and wherein key is when data store using the data name arrived, when
When needing to delete certain data, will data name corresponding with the data value be passed in remove (key) function can be by the number
It is deleted according to from caching warehouse.
In embodiments of the present invention, in data buffer storage, the side by traversal is needed in put (key, value) function
Method traverses collection object listAll, and adjusts back onDataCached (the String key, Object in listAll set
Value) method, by message to all related sides in listAll, key therein is the key of buffered data,
Value is buffered value;Similarly, when data are deleted, pass through traversal readjustment in remove (key) function
OnDataRemoved (String key) method in listAll set adjusts back message to all correlations in listAll
Side.The process may be implemented when data change, as long as registered related side can receive data change
Message, to achieve the purpose that data Notification of Changes.
Whether the data cache method for having informing function of the invention judge cache pool object by the value of variable
Instantiation, if so, the cache pool object of instantiation is directly acquired, if it is not, then calling constructed fuction by cache pool object instance
Change, change the value of variable, then obtain the cache pool object of instantiation, so as to ensure to only have an instantiation in cache pool
Object exists, to realize the shared of cache pool data;And the cache pool has informing function, stores when in cache pool object
Data when being stored or being deleted, that is, when the data stored change, inform related side by sending message, as long as thus
Data variation then notifies related side at any time, monitors, economizes on resources without poll, and notice is timely.
The embodiment of the invention also provides a kind of storage mediums, are stored thereon with computer program, and computer program is located
Manage the step of realizing the above method when device executes.
Shown in Figure 2, the embodiment of the invention also provides a kind of electronic equipment, including memory, processor and storage
The computer program run on a memory and on a processor, processor realize the step of the above method when executing computer program
Suddenly.
The embodiment of the invention also provides a kind of data buffering system for having informing function, system include creation module,
Judgment module and notification module;
Creation module is used to construct one the cache pool with informing function, and constructs one for obtaining cache pool in cache pool
The acquisition function of object defines one in obtaining function and is used for the constructed fuction of cache pool object-instantiated;
Judgment module in cache pool for defining a variable, when needing to obtain cache pool object, first basis in advance
The value of variable judges whether cache pool object has instantiated, if so, directly acquire the cache pool object of instantiation, if it is not,
It then calls constructed fuction by cache pool object-instantiated, changes the value of variable, then obtain the cache pool object of instantiation;
Notification module is used for when the data stored in the cache pool object of instantiation change, and notifies the phase that need to be informed
Guan Fang.
Further, the data buffering system for having informing function further includes a setup module and processing module;
Setup module is used for before the related side that notice need to inform, one is defined in cache pool object for storing correlation
The collection object of square information, and one is constructed for increasing the registration function and one of related side in collection object for collecting
Close the anti-registration function that related side is removed in object;
Processing module is used for when whether related side needs to be apprised of the data stored in cache pool object and change, then
It calls the registration function to increase to the related side in collection object, is stored in cache pool object when related side does not need to be apprised of
When whether data change, then anti-registration function is called to remove related side from collection object.
The processing module of data buffering system can be according to whether the variation of monitoring data comes in the embodiment of the present invention
Increase in collection object or deleted from collection object, when the cache pool data in cache pool object change, is led to
Know the related side in collection object, to realize the control to related side, implementation method is simple.
Further, the data buffering system for having informing function further includes a protocol module, and protocol module is for preparatory
A notification protocol is defined, when the data stored in the cache pool object of instantiation change, phase is notified according to notification protocol
Guan Fang carries out respective handling.
Further, the data buffering system for having informing function further includes a memory module, and memory module is used in number
It is stored in caching warehouse according to the caching warehouse for defining a HashMap type in cache pool when needing to carry out data buffer storage
Corresponding data name and data value corresponding with data name are deleted corresponding when being deleted in caching warehouse
Data name and data value corresponding with data name, to realize the storage and deletion of data, realization rate is simple, and just
Data are extracted as needed in subsequent.
Whether the data buffering system for having informing function of the invention judge cache pool object by the value of variable
Instantiation, if so, the cache pool object of instantiation is directly acquired, if it is not, then calling constructed fuction by cache pool object instance
Change, change the value of variable, then obtain the cache pool object of instantiation, so as to ensure to only have an instantiation in cache pool
Object exists, to realize the shared of cache pool data;And the cache pool has informing function, stores when in cache pool object
Data when being stored or being deleted, that is, when the data stored change, inform related side by sending message, as long as thus
Data variation then notifies related side at any time, monitors, economizes on resources without poll, and notice is timely.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of data cache method for having informing function, which is characterized in that comprising steps of
Cache pool of the building one with informing function, and one is constructed for obtaining the acquisition letter of cache pool object in the cache pool
Number defines one in the acquisition function and is used for the constructed fuction of cache pool object-instantiated;
The variable whether an expression cache pool instantiates is defined in cache pool in advance, when needing to obtain cache pool object
When, first judge whether cache pool object has instantiated according to the value of the variable, if so, directly acquiring the caching of instantiation
Pond object changes the value of the variable if it is not, then calling the constructed fuction by the cache pool object-instantiated, then obtains
The cache pool object of instantiation;
When the data stored in the cache pool object of instantiation change, the related side that need to be informed is notified.
2. having the data cache method of informing function as described in claim 1, which is characterized in that in the phase that notice need to inform
Before Guan Fang, further comprise the steps of:
One is defined in cache pool object for storing the collection object of related side's information, and constructs one in the set pair
As the middle registration function for increasing related side and one in the collection object for removing the anti-registration function of related side;
When related side, which needs to be apprised of the data stored in cache pool object, whether to change, then the registration function is called
The related side is increased in collection object, when related side does not need to be apprised of whether the data stored in cache pool object occur
When variation, then the anti-registration function is called to remove related side from collection object.
3. having the data cache method of informing function as described in claim 1, which is characterized in that comprising steps of fixed in advance
An adopted notification protocol is notified when the data stored in the cache pool object of instantiation change according to the notification protocol
Related side carries out respective handling.
4. having the data cache method of informing function as described in claim 1, which is characterized in that further comprise the steps of: in number
According to the caching warehouse for defining a HashMap type in cache pool, when needing to carry out data buffer storage, in the caching warehouse
Corresponding data name and data value corresponding with the data name are stored, when being deleted, in the buffering chamber
Corresponding data name and data value corresponding with the data name are deleted in library.
5. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor
The step of any one of Shi Shixian the claims 1 to 4 the method.
6. a kind of electronic equipment, including memory, processor and it is stored on the memory and runs on the processor
Computer program, it is characterised in that: the processor is realized in the claims 1 to 4 when executing the computer program
The step of any one the method.
7. a kind of data buffering system for having informing function, it is characterised in that: the system comprises creation modules, judgment module
And notification module;
The creation module is used to construct one the cache pool with informing function, and constructs one and delay for obtaining in the cache pool
The acquisition function for depositing pond object defines one in the acquisition function and is used for the constructed fuction of cache pool object-instantiated;
The judgment module in cache pool for defining a variable, when needing to obtain cache pool object, first basis in advance
The value of the variable judges whether cache pool object has instantiated, if so, directly acquire the cache pool object of instantiation, if
It is no, then it calls the constructed fuction by the cache pool object-instantiated, changes the value of the variable, then obtain the slow of instantiation
Deposit pond object;
The notification module is used for when the data stored in the cache pool object of instantiation change, and notifies the phase that need to be informed
Guan Fang.
8. having the data buffering system of informing function as claimed in claim 7, it is characterised in that: further include a setup module
And processing module;
The setup module is used for before the related side that notice need to inform, one is defined in cache pool object for storing correlation
The collection object of square information, and construct one and be used for for the registration function of increase related side in the collection object and one
The anti-registration function of related side is removed in the collection object;
The processing module is used for when whether related side needs to be apprised of the data stored in cache pool object and change, then
It calls the registration function to increase to the related side in collection object, is deposited when related side does not need to be apprised of in cache pool object
When whether the data of storage change, then the anti-registration function is called to remove related side from collection object.
9. having the data buffering system of informing function as claimed in claim 7, it is characterised in that: the system also includes one
Protocol module, the protocol module is for pre-defining a notification protocol, when the data stored in the cache pool object of instantiation
When changing, related side is notified to carry out respective handling according to the notification protocol.
10. having the data buffering system of informing function as claimed in claim 7, it is characterised in that: further include a storage mould
Block, the memory module in data buffer storage pond for defining the caching warehouse of a HashMap type, when needing to carry out data
When caching, corresponding data name and data value corresponding with the data name are stored in the caching warehouse, works as needs
When being deleted, corresponding data name and data value corresponding with the data name are deleted in the caching warehouse.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810023322.6A CN110018912A (en) | 2018-01-10 | 2018-01-10 | Data cache method, storage medium, equipment and the system for having informing function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810023322.6A CN110018912A (en) | 2018-01-10 | 2018-01-10 | Data cache method, storage medium, equipment and the system for having informing function |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110018912A true CN110018912A (en) | 2019-07-16 |
Family
ID=67188127
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810023322.6A Pending CN110018912A (en) | 2018-01-10 | 2018-01-10 | Data cache method, storage medium, equipment and the system for having informing function |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110018912A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112181663A (en) * | 2020-10-15 | 2021-01-05 | 新华三大数据技术有限公司 | Memory scheduling method and device and computer equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103475718A (en) * | 2013-09-11 | 2013-12-25 | 北京京东尚科信息技术有限公司 | Data caching method and system |
| CN104808952A (en) * | 2015-05-05 | 2015-07-29 | 百度在线网络技术(北京)有限公司 | Data caching method and device |
| US9658935B1 (en) * | 2011-06-15 | 2017-05-23 | Amazon Technologies, Inc. | Processing file modifications in a networked storage system |
| US20170235794A1 (en) * | 2015-05-14 | 2017-08-17 | Walleye Software, LLC | Dynamic join processing using real time merged notification listener |
-
2018
- 2018-01-10 CN CN201810023322.6A patent/CN110018912A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9658935B1 (en) * | 2011-06-15 | 2017-05-23 | Amazon Technologies, Inc. | Processing file modifications in a networked storage system |
| CN103475718A (en) * | 2013-09-11 | 2013-12-25 | 北京京东尚科信息技术有限公司 | Data caching method and system |
| CN104808952A (en) * | 2015-05-05 | 2015-07-29 | 百度在线网络技术(北京)有限公司 | Data caching method and device |
| US20170235794A1 (en) * | 2015-05-14 | 2017-08-17 | Walleye Software, LLC | Dynamic join processing using real time merged notification listener |
Non-Patent Citations (2)
| Title |
|---|
| ALEXSNAPS: "RegisteredEventListeners (Ehcache Core 2.5.2 API)", 《WWW.EHCACHE.ORG/APIDOCS/2.5.2/NET/SF/EHCACHE/EVENT/REGISTEREDEVENTLISTENERS.HTML》 * |
| MAWIA: "Guava CacheBuilder removal listener", 《HTTPS://STACKOVERFLOW.COM/QUESTIONS/10626720/GUAVA-CACHEBUILDER-REMOVAL-LISTENER》 * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112181663A (en) * | 2020-10-15 | 2021-01-05 | 新华三大数据技术有限公司 | Memory scheduling method and device and computer equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11650894B2 (en) | Content-sensitive container scheduling on clusters | |
| US10908977B1 (en) | Efficient message queuing service | |
| CN111770002B (en) | Test data forwarding control method and device, readable storage medium and electronic equipment | |
| CN106709003A (en) | Hadoop-based mass log data processing method | |
| CN116166691B (en) | Data archiving system, method, device and equipment based on data division | |
| CN106815125A (en) | A kind of log audit method and platform | |
| WO2020106415A1 (en) | Protecting iot devices by behavioural analysis of their file system | |
| CN109120461A (en) | A kind of service feature end-to-end monitoring method, system and device | |
| CN112506954A (en) | Database auditing method and device | |
| CN114710368A (en) | Security event detection method and device and computer readable storage medium | |
| CN109271793A (en) | IoT cloud platform device category identification method and system | |
| CN103886508A (en) | Mass farmland data monitoring method and system | |
| CN106126395A (en) | A kind of cloud platform monitoring method and system | |
| CN110515938B (en) | Data aggregation and storage method, equipment and storage medium based on KAFKA message bus | |
| CN103914649A (en) | Method for comprehensively analyzing and processing real-time alarms on basis of attack strategy graphs and intrusion detection system thereof | |
| CN111277848A (en) | Method and device for processing interactive messages in live broadcast room, electronic equipment and storage medium | |
| CN105069029B (en) | A kind of real-time ETL system and method | |
| CN107480072B (en) | Cache optimization method and system for transparent computing server based on associative mode | |
| CA2807759C (en) | Application monitoring | |
| CN109460393B (en) | A visualization system for pre-check and pre-repair based on big data | |
| CN110018912A (en) | Data cache method, storage medium, equipment and the system for having informing function | |
| CN109831316A (en) | Massive logs real-time analyzer, real-time analysis method and readable storage medium storing program for executing | |
| CN106445771A (en) | Monitoring data processing method and device, and monitoring server | |
| CN106257447B (en) | The video of cloud storage service device stores and search method, video cloud storage system | |
| CN106528448A (en) | Distributed caching mechanism for multi-source heterogeneous electronic commerce big data |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190716 |
|
| RJ01 | Rejection of invention patent application after publication |