CN102043653A - Cache system and methods for modifying cache configuration and operating and querying cache data - Google Patents

Cache system and methods for modifying cache configuration and operating and querying cache data Download PDF

Info

Publication number
CN102043653A
CN102043653A CN2010106031255A CN201010603125A CN102043653A CN 102043653 A CN102043653 A CN 102043653A CN 2010106031255 A CN2010106031255 A CN 2010106031255A CN 201010603125 A CN201010603125 A CN 201010603125A CN 102043653 A CN102043653 A CN 102043653A
Authority
CN
China
Prior art keywords
configuration
configuration file
data
cached
disposes
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
Application number
CN2010106031255A
Other languages
Chinese (zh)
Inventor
唐家才
朱玥
吴旭春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN2010106031255A priority Critical patent/CN102043653A/en
Publication of CN102043653A publication Critical patent/CN102043653A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention provides a cache system and methods for modifying cache configuration and operating and querying cache data, wherein the method for modifying cache configuration comprises the following steps of: querying configuration files to be modified in the configuration files of pre-created cache configuration, and modifying and storing the queried configuration files, wherein the configuration files of the cache configuration are configured in a way of xml or java annotating. By adopting a configuration way for the cache configuration, the decoupling of the cache configuration and codes is realized, code modification is not needed any more in subsequent system maintenance and cache configuration modification, and only the configuration files need to be modified in the processes of code compilation and redeployment so that the modifying process of the cache configuration is greatly simplified and the modifying efficiency is increased. The method provided by the embodiment of the invention can be used for managing the cache configuration in centralization, reducing the bit error rate in development, and greatly reducing the working capacity of code maintenance and testing, thereby being suitable for use in large-scale enterprise level J2EE projects.

Description

The amending method of cached configuration, data cached operation, querying method and caching system
Technical field
The present invention relates to technical field of data storage, relate in particular to a kind of amending method of cached configuration, data cached operation, querying method and caching system.
Background technology
Buffer memory is the general notion of computer realm, and it is between application program and permanent data store source, and effect is the frequency that reduces application program direct read persistent data storage source, thereby improves the operational efficiency of using.Data in the buffer memory are copies of data in the data storage source, application program directly reads data in buffer when operation, the realization of buffer memory not only needs the hardware as physical medium, also need to be used to manage the concurrent visit of buffer memory and the software of strategy such as expired, so the realization of buffer memory is that software and hardware is finished jointly.
Caching system in the java field has JBoss cache, OSCache, Java Caching System etc. at present.These Java caching systems mostly must be controlled data cached at the code level, only support the hard coded exploitation of API mode, cached configuration need be write in the java code in the mode of hard coded, wherein, cached configuration is a vital configuration, and it is related to the performance performance of whole application program.
Yet, the cached configuration mode of coding type has determined when cached configuration is made amendment, and needs at first to find in code the part that needs modification, behind the modification code, again amended code is compiled and redeploys, just can finish modification cached configuration.This cached configuration amending method complex operation, efficient is extremely low.
Summary of the invention
The embodiment of the invention provides a kind of amending method of cached configuration, data cached operation, querying method and caching system, can simplify the modification process to cached configuration.
In order to solve the problems of the technologies described above, the technical scheme of the embodiment of the invention is as follows:
The embodiment of the invention provides a kind of amending method of cached configuration, comprising:
In the configuration file of the cached configuration of setting up in advance, search configuration file to be revised;
The configuration file that finds is made amendment and stored;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
Further, described the configuration file that finds is made amendment and is stored comprise:
When the configuration file of described cached configuration disposes in the xml mode, replace the described configuration file that finds with amended configuration file.
Further, described the configuration file that finds is made amendment and is stored comprise:
When the configuration file of described cached configuration disposes in java note mode, amended configuration file is disposed in the xml mode, to cover the described configuration file that finds, wherein, the priority of the configuration file that described xml mode disposes is higher than the configuration file that described java note mode disposes.
The embodiment of the invention also provides a kind of data cached method of operating, comprising:
Reception is to the operation requests of specific data;
According to the cache policy in the configuration file of cached configuration, in persistent storage, described specific data is carried out described operation;
In buffer memory, described specific data is carried out described operation;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
Further, described reception comprises the operation requests of specific data:
Reception increases to specific data the request of buffer memory; Perhaps,
Reception is deleted specific data in buffer memory request; Perhaps,
Be received in the request of in the buffer memory specific data being upgraded.
The embodiment of the invention also provides a kind of data cached querying method, comprising:
Receive the data query request;
According to the cache policy in the configuration file of cached configuration, in buffer memory, whether there are described data according to the filtercondition inquiry;
If not, then in persistent storage, inquire about whether there are described data;
If, then with described data storage in described buffer memory, and return Query Result.
The embodiment of the invention also provides a kind of caching system, comprising:
Search the unit, be used for searching configuration file to be revised at the configuration file of the cached configuration of setting up in advance;
Revise the unit, be used for the configuration file that finds is made amendment and stored;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
Further, described modification unit specifically is used for when the configuration file of described cached configuration disposes in the xml mode, replaces the described configuration file that finds with amended configuration file.
Further, described modification unit, specifically be used for when the configuration file of described cached configuration disposes in java note mode, amended configuration file is disposed in the xml mode, to cover the described configuration file that finds, wherein, the priority of the configuration file that disposes of described xml mode is higher than the configuration file that described java note mode disposes.
The embodiment of the invention also provides a kind of caching system, comprising:
The request receiving element is used to receive the operation requests to specific data;
First operating unit is used for the cache policy according to the configuration file of cached configuration, in persistent storage described specific data is carried out described operation;
Second operating unit is used at buffer memory described specific data being carried out described operation;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
Further, the described request receiving element specifically is used to receive the request that specific data is increased to buffer memory; Perhaps, receive the request that specific data is deleted in buffer memory; Perhaps, be received in the request of in the buffer memory specific data being upgraded.
The embodiment of the invention also provides a kind of caching system, comprising:
The inquiry receiving element is used to receive the data query request;
First query unit is used for the cache policy according to the configuration file of cached configuration, buffer memory according to filtercondition in inquiry whether have described data;
Second query unit is used for when there are not described data in described buffer memory, and whether inquiry exists described data in persistent storage;
Storage unit is used for when there are described data in described persistent storage, and described data storage in described buffer memory, and is returned Query Result.
The embodiment of the invention is by adopting the mode of collocation type to cached configuration, do not need the buffer memory code is hard coded in the system code, realized the decoupling zero of cached configuration and code, when system's later maintenance and buffer memory configuration change, no longer need to revise code, code compile and the process that redeploys only need to revise configuration file and get final product, simplify the modification process of cached configuration greatly, improved modification efficient.The present embodiment method can be centralized the management cached configuration, reduce the bit error rate in the exploitation, and not needing the java virtual machine to recompilate can dispose, the workload of code maintenance and test is less greatly, the O﹠M phase can be adjusted the cached configuration strategy at any time, is applicable to the use of the level J2EE of large enterprise project.
And, based on above-mentioned cached configuration mode, this caching system can increase multiple cache policy in configuration file, for example support data cachedly to obtain, data cached change and deletion, and can support data cached obtaining mode etc. flexibly, java caching system function compared to existing technology is more comprehensive, satisfies the buffer memory demand of the level J2EE of large enterprise project fully.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the amending method process flow diagram of a kind of cached configuration of the embodiment of the invention;
Fig. 2 is a kind of data cached flow chart of the embodiment of the invention;
Fig. 3 is a kind of data cached querying method process flow diagram of the embodiment of the invention;
Fig. 4 is the structural representation of a kind of caching system of the embodiment of the invention;
Fig. 5 is the structural representation of the another kind of caching system of the embodiment of the invention;
Fig. 6 is the structural representation of the another kind of caching system of the embodiment of the invention.
Embodiment
In order to make those skilled in the art can further understand feature of the present invention and technology contents, see also following about detailed description of the present invention and accompanying drawing, accompanying drawing only provide with reference to and explanation, be not to be used for limiting the present invention.
Below in conjunction with drawings and Examples, technical scheme of the present invention is described.
Referring to Fig. 1, be the amending method process flow diagram of a kind of cached configuration of the embodiment of the invention.
This method can comprise:
Step 101 is searched configuration file to be revised in the configuration file of the cached configuration of setting up in advance.
In the present embodiment, cached configuration in this caching system does not re-use that the mode of hard coded writes in the code in the prior art, but adopt the mode of configuration to realize, for example, the configuration file of cached configuration can be disposed in the xml mode, or dispose in java note mode, also promptly use java to explain or xml describes cached configuration.
Wherein, during the xml mode disposed, Mode pointed out the configuration mode of buffer memory, showed how to use buffer memory, and the mode of use comprises three kinds of get (obtaining buffer memory), put (adding or the modification buffer memory), remove (deletion buffer memory); Node refers to cache node, identifies the node at data cached place; Key is meant data cached key assignments, can determine unique data cachedly by this key assignments and node, this caching system is supported three kinds of key assignments strategies, the one, and object is key assignments, the 2nd, certain attribute of object is a key assignments, the 3rd, generate a key assignments according to the key assignments object; Param key is meant the key assignments that disposes on parameter; Return key is meant the key assignments that disposes on method; Last important configuration is filtered model filter, and filter can be according to the pattern query buffer memory that filters.The xml element can comprise in this caching system: method, key, generator, property, parameter, param, node, filter etc.
During java note mode disposed, the note of this buffer memory can Bao Kuo @Cacheable, @Property, @Filter, @Key, @Node, @Nodes six kinds.
After configuration is finished, the caching system parsing operation that just can be mapped according to configuration item and user's Configuration Values.
Step 102 is made amendment and is stored the configuration file that finds.
After finding the configuration file that needs to revise, this configuration file is made amendment, concrete, if the configuration file of cached configuration disposes in the xml mode, the configuration file that the needs that then can directly adopt amended configuration file replacement to find are revised.
If the configuration file of cached configuration disposes in java note mode, because the priority of the configuration file that the xml mode disposes is higher than the configuration file that java note mode disposes, when revising, can directly amended configuration file be disposed in the xml mode, amended configuration file can directly cover the configuration file of the needs modification that finds.This mode can make the developer directly configuration file is programmed in the code in java note mode earlier on stream, with convenient exploitation, in test of project later stage and integrating process, the cached configuration that needs are revised directly can be reconfigured with the mode of xml, can cover the cached configuration that the java note mode in the code disposes, thereby finish the modification of cached configuration, greatly facilitate the maintenance and the test of caching system.
The embodiment of the invention is by adopting the mode of collocation type to cached configuration, do not need the buffer memory code is hard coded in the system code, realized the decoupling zero of cached configuration and code, when system's later maintenance and buffer memory configuration change, no longer need to revise code, code compile and the process that redeploys only need to revise configuration file and get final product, simplify the modification process of cached configuration greatly, improved modification efficient.The present embodiment method can be centralized the management cached configuration, reduce the bit error rate in the exploitation, and not needing the java virtual machine to recompilate can dispose, the workload of code maintenance and test is less greatly, the O﹠M phase can be adjusted the cached configuration strategy at any time, is applicable to the use of the level J2EE of large enterprise project.
Based on above-mentioned cached configuration mode, this caching system can increase multiple cache policy in configuration file, for example support data cachedly to obtain, data cached change and deletion, and can support data cached flexibly obtaining mode, can the where condition filter, support multiple key strategy, support table form buffer structure and the tree-like buffer structure of tree etc., satisfy the buffer memory demand of the level J2EE of large enterprise project fully.
Caching system of the prior art is generally only supported the major key inquiry, in embodiments of the present invention, by on the basis of above-mentioned cached configuration mode, in configuration file, increase cache policy, can realize data cached increase, deletion, renewal, query function, java caching system compared to existing technology, function is more comprehensive.Be described below in conjunction with drawings and Examples.
Referring to Fig. 2, be a kind of data cached flow chart of the embodiment of the invention.
This method can comprise:
Step 201 receives the operation requests to specific data.
This operation requests that receives can be the request that increases the new data of appointment in buffer memory, also can be the request that specific data is deleted in buffer memory, can also be the request of in buffer memory specific data being upgraded.System comprises these data in this request or is used to identify the information of these data, so that can obtain data designated according to this request.Wherein, increasing data, deleted data is identical with the logic flow of new data more, is at first and operates in persistent storage such as database, and then operate in buffer memory, concrete as following steps.
Step 202, according to the cache policy in the configuration file of cached configuration, in persistent storage to the specific data executable operations.
The configuration file of cached configuration can be that the xml mode disposes or disposes in java note mode in the present embodiment, and the corresponding description in concrete layoutprocedure and the previous embodiment is similar, and this repeats no more.By this cached configuration mode, do not need to revise code, only needing to revise configuration file can increase and change cache policy in the configuration file easily, is implemented in the buffer memory the multiple operation to data.
In the configuration file of cached configuration, can be provided with multiple cache policy, for example, for the cache policy that increases data can be the mode that increases put in xml file or java comment code, increases in persistent storage earlier when increasing data, increases in buffer memory then; Can in xml file or java comment code, increase the mode of remove for the cache policy of deleted data, when deleted data, in persistent storage, delete earlier, in buffer memory, delete then; , repeat no more with to increase data and deleted data similar for the cache policy set-up mode of new data more herein.
In this step, find in the configuration file behind the corresponding cache strategy, can be at first in persistent storage such as database according to this cache policy, the operation that specific data is increased or deletes or upgrade.
Step 203, in buffer memory to the specific data executable operations.
After in database, data being operable to merit, can in buffer memory, carry out identical operations to operating successful data.When these data of user inquiring, can directly from buffer memory, obtain, and not need to visit persistent storage like this.
The embodiment of the invention is by above-mentioned cached configuration mode, can in configuration file, increase and revise cache policy easily, and realized data cached increase, deletion, update functions according to cache policy, and the java caching system in compared to existing technology, function is more comprehensive.
Referring to Fig. 3, be a kind of data cached querying method process flow diagram of the embodiment of the invention.
This method can comprise:
Step 301 receives the data query request.
Whether step 302 according to the cache policy in the configuration file of cached configuration, exists these data according to the filtercondition inquiry in buffer memory.
The configuration file of cached configuration can be that the xml mode disposes or disposes in java note mode in the present embodiment, and the corresponding description in concrete layoutprocedure and the previous embodiment is similar, and this repeats no more.By this cached configuration mode, do not need to revise code, only needing to revise configuration file can increase and change cache policy in the configuration file easily, is implemented in the buffer memory the multiple operation to data.
Can be provided with the cache policy about inquiry in the configuration file of cached configuration, for example can be the mode that get is set in xml file or java comment code, and configurating filtered pattern filter, and where condition query etc. for example is set.
Caching system can be inquired about these data in buffer memory according to corresponding cache strategy in the configuration file after receiving the query requests of data.If in buffer memory, find these data, then return Query Result, if can not find out, then change step 303 over to.
Step 303, whether inquiry exists these data in persistent storage.
If there are not the data of inquiry in the buffer memory, just cache miss is then initiated the request data query to persistent storage.If there is no these data then can be carried out step 201 in the previous embodiment~203, increase this data, if having these data then change step 304 over to.
Step 304 in buffer memory, and returns this data storage to Query Result.
After in persistent storage such as database, finding these data, can be earlier with this data storage in buffer memory, and then return Query Result.When receiving the query requests to identical data so next time, direct return data result from buffer memory just, and needn't in persistent storage, search data again.
The embodiment of the invention is by above-mentioned cached configuration mode, can in configuration file, increase the cache policy of inquiry easily, and realized data cached multiple query function according to cache policy, more comprehensive than the major key query function of java caching system in the prior art.
More than be description, below the caching system of realizing said method be introduced the inventive method embodiment.
Referring to Fig. 4, be the structural representation of a kind of caching system of the embodiment of the invention.
This system can comprise:
Search unit 401, be used for searching configuration file to be revised at the configuration file of the cached configuration of setting up in advance.
Revise unit 402, be used for the configuration file that finds is made amendment and stored.
In the present embodiment, cached configuration in this caching system does not re-use that the mode of hard coded writes in the code in the prior art, but adopt the mode of configuration to realize that concrete, the configuration file of cached configuration can be to dispose or dispose in java note mode in the xml mode.When needs are revised cached configuration,, after finding the configuration file that needs to revise, revise 402 pairs of these configuration files in unit and make amendment at first by search the configuration file that unit 401 finds needs modification in configuration file.
In another embodiment of the present invention, revise unit 402, specifically can be used for when the configuration file of cached configuration disposes in the xml mode, directly replace the configuration file that finds with amended configuration file.Revise unit 402, specifically can also be used for when the configuration file of cached configuration disposes in java note mode, amended configuration file is disposed in the xml mode, the configuration file that finds with covering, wherein, the priority of the configuration file that disposes of xml mode is higher than the configuration file that java note mode disposes.
The embodiment of the invention is by adopting the mode of collocation type to cached configuration, do not need the buffer memory code is hard coded in the system code, realized the decoupling zero of cached configuration and code, when system's later maintenance and buffer memory configuration change, no longer need to revise code, code compile and the process that redeploys only need get final product by searching unit 401 and revising unit 402 modification configuration files, simplify the modification process of cached configuration greatly, improved modification efficient.Caching system in the present embodiment can be centralized the management cached configuration, reduce the bit error rate in the exploitation, and not needing the java virtual machine to recompilate can dispose, the workload of code maintenance and test is less greatly, the O﹠M phase can be adjusted the cached configuration strategy at any time, is applicable to the use of the level J2EE of large enterprise project.
Referring to Fig. 5, be the structural representation of the another kind of caching system of the embodiment of the invention.
This caching system can comprise:
Request receiving element 501 is used to receive the operation requests to specific data.This request receiving element 501 specifically can be used to receive the request that specific data is increased to buffer memory; Perhaps, receive the request that specific data is deleted in buffer memory; Perhaps, be received in the request of in the buffer memory specific data being upgraded.
First operating unit 502 is used for the cache policy according to the configuration file of cached configuration, in persistent storage to the specific data executable operations.
Second operating unit 503 is used at buffer memory the specific data executable operations.
In this caching system, the configuration file of cached configuration disposes in the xml mode or disposes in java note mode.Based on this cached configuration mode, this caching system can increase multiple cache policy in configuration file, for example supports data cachedly to obtain, data cached change and deletion, and can support data cached flexibly obtaining mode.In the present embodiment, the request receiving element 501 of caching system is after the operation requests that receives specific data, and this request can be data increase, deletion or update request, and wherein, increasing data, deleted data is identical with the logic flow of new data more.First operating unit 502 finds in the configuration file behind the corresponding cache strategy, can be at first in persistent storage such as database according to this cache policy, and the operation that specific data is increased or deletes or upgrade.After in database data being operable to merit, second operating unit 503 can carry out identical operations to operating successful data in buffer memory.When these data of user inquiring, can directly from buffer memory, obtain, and not need to visit persistent storage like this.
The embodiment of the invention is by above-mentioned cached configuration mode, can in configuration file, increase and revise cache policy easily, and can realize data cached increase, deletion, update functions according to cache policy by said units, java caching system compared to existing technology, function is more comprehensive.
Referring to Fig. 6, be the structural representation of the another kind of caching system of the embodiment of the invention.
This caching system can comprise:
Inquiry receiving element 601 is used to receive the data query request.
First query unit 602 is used for the cache policy according to the configuration file of cached configuration, whether has these data according to the filtercondition inquiry in buffer memory.
Second query unit 603 is used for when there are not these data in buffer memory, and whether inquiry exists these data in persistent storage.
Storage unit 604 is used for when there are these data in persistent storage, and this data storage in buffer memory, and is returned Query Result.
In this caching system, the configuration file of cached configuration disposes in the xml mode or disposes in java note mode.Based on this cached configuration mode, this caching system can increase multiple cache policy about inquiry, for example where condition query etc. in configuration file.Inquiry receiving element 601 is after receiving the query requests of data, and first query unit 602 can be inquired about these data according to filtercondition in buffer memory according to corresponding cache strategy in the configuration file.If in buffer memory, find these data, then return Query Result, if can not find out, then second query unit 603 inquires about whether there are these data in persistent storage, if had these data storage unit 604 earlier with this data storage in buffer memory, and then return Query Result.When receiving the query requests to identical data so next time, direct return data result from buffer memory just, and needn't in persistent storage, search data again.
The embodiment of the invention is by above-mentioned cached configuration mode, can in configuration file, increase the cache policy of inquiry easily, and realized data cached multiple query function according to cache policy by said units, more comprehensive than the major key query function of java caching system in the prior art.
Each unit among the above embodiment all can be integrated in the same caching system, the cached configuration of this caching system technical configuration formula, multiple cache policy can be set in configuration file, in same caching system, realize modification by above-mentioned each unit, to increase, deletion, renewal and the inquiry of data to cached configuration.The specific implementation process of each unit please refer to the corresponding description among the preceding method embodiment in the above caching system, repeats no more herein.
Above-described embodiment of the present invention does not constitute the qualification to protection domain of the present invention.Any modification of being done within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within the claim protection domain of the present invention.

Claims (12)

1. the amending method of a cached configuration is characterized in that, comprising:
In the configuration file of the cached configuration of setting up in advance, search configuration file to be revised;
The configuration file that finds is made amendment and stored;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
2. method according to claim 1 is characterized in that, described the configuration file that finds is made amendment and is stored comprise:
When the configuration file of described cached configuration disposes in the xml mode, replace the described configuration file that finds with amended configuration file.
3. method according to claim 1 is characterized in that, described the configuration file that finds is made amendment and is stored comprise:
When the configuration file of described cached configuration disposes in java note mode, amended configuration file is disposed in the xml mode, to cover the described configuration file that finds, wherein, the priority of the configuration file that described xml mode disposes is higher than the configuration file that described java note mode disposes.
4. a data cached method of operating is characterized in that, comprising:
Reception is to the operation requests of specific data;
According to the cache policy in the configuration file of cached configuration, in persistent storage, described specific data is carried out described operation;
In buffer memory, described specific data is carried out described operation;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
5. method according to claim 4 is characterized in that, described reception comprises the operation requests of specific data:
Reception increases to specific data the request of buffer memory; Perhaps,
Reception is deleted specific data in buffer memory request; Perhaps,
Be received in the request of in the buffer memory specific data being upgraded.
6. a data cached querying method is characterized in that, comprising:
Receive the data query request;
According to the cache policy in the configuration file of cached configuration, in buffer memory, whether there are described data according to the filtercondition inquiry;
If not, then in persistent storage, inquire about whether there are described data;
If, then with described data storage in described buffer memory, and return Query Result.
7. a caching system is characterized in that, comprising:
Search the unit, be used for searching configuration file to be revised at the configuration file of the cached configuration of setting up in advance;
Revise the unit, be used for the configuration file that finds is made amendment and stored;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
8. caching system according to claim 7 is characterized in that,
Described modification unit specifically is used for when the configuration file of described cached configuration disposes in the xml mode, replaces the described configuration file that finds with amended configuration file.
9. caching system according to claim 7 is characterized in that,
Described modification unit, specifically be used for when the configuration file of described cached configuration disposes in java note mode, amended configuration file is disposed in the xml mode, to cover the described configuration file that finds, wherein, the priority of the configuration file that disposes of described xml mode is higher than the configuration file that described java note mode disposes.
10. a caching system is characterized in that, comprising:
The request receiving element is used to receive the operation requests to specific data;
First operating unit is used for the cache policy according to the configuration file of cached configuration, in persistent storage described specific data is carried out described operation;
Second operating unit is used at buffer memory described specific data being carried out described operation;
Wherein, the configuration file of described cached configuration disposes in the xml mode or disposes in java note mode.
11. caching system according to claim 10 is characterized in that,
The described request receiving element specifically is used to receive the request that specific data is increased to buffer memory; Perhaps, receive the request that specific data is deleted in buffer memory; Perhaps, be received in the request of in the buffer memory specific data being upgraded.
12. a caching system is characterized in that, comprising:
The inquiry receiving element is used to receive the data query request;
First query unit is used for the cache policy according to the configuration file of cached configuration, whether has described data according to the filtercondition inquiry in buffer memory;
Second query unit is used for when there are not described data in described buffer memory, and whether inquiry exists described data in persistent storage;
Storage unit is used for when there are described data in described persistent storage, and described data storage in described buffer memory, and is returned Query Result.
CN2010106031255A 2010-12-23 2010-12-23 Cache system and methods for modifying cache configuration and operating and querying cache data Pending CN102043653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106031255A CN102043653A (en) 2010-12-23 2010-12-23 Cache system and methods for modifying cache configuration and operating and querying cache data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106031255A CN102043653A (en) 2010-12-23 2010-12-23 Cache system and methods for modifying cache configuration and operating and querying cache data

Publications (1)

Publication Number Publication Date
CN102043653A true CN102043653A (en) 2011-05-04

Family

ID=43909810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106031255A Pending CN102043653A (en) 2010-12-23 2010-12-23 Cache system and methods for modifying cache configuration and operating and querying cache data

Country Status (1)

Country Link
CN (1) CN102043653A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609494A (en) * 2012-01-21 2012-07-25 北京恒华伟业科技股份有限公司 Method for processing data of machine account and device
CN105100289A (en) * 2015-09-24 2015-11-25 中邮科通信技术股份有限公司 Web caching method based on comment description
CN105930171A (en) * 2016-05-13 2016-09-07 乐视控股(北京)有限公司 Distributed uniform cache realization method, device and system
CN106445505A (en) * 2016-08-31 2017-02-22 恒生电子股份有限公司 Code processing method and device
CN106933644A (en) * 2015-12-31 2017-07-07 北京国双科技有限公司 Data processing method and device
CN107291779A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Data cached management method and device
CN107436769A (en) * 2017-08-07 2017-12-05 安徽优易思信息技术有限责任公司 The amending method and device of a kind of cached configuration
CN107463378A (en) * 2017-07-28 2017-12-12 深圳市丰巢科技有限公司 A kind of local cache implementation method, storage device and electronic equipment based on note
CN107817972A (en) * 2017-11-03 2018-03-20 泰康保险集团股份有限公司 Cache code process method, apparatus, storage medium and electronic equipment
CN107861751A (en) * 2017-11-22 2018-03-30 出门问问信息科技有限公司 The amending method and device of configuration file
CN108628891A (en) * 2017-03-21 2018-10-09 北京京东尚科信息技术有限公司 Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer
CN109299019A (en) * 2018-08-15 2019-02-01 福建联迪商用设备有限公司 A kind of method and terminal for generating buffer zone and caching key assignments
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN110221829A (en) * 2019-05-10 2019-09-10 杭州米雅信息科技有限公司 Information processing method and its system, computer system and computer-readable medium
CN110968603A (en) * 2019-11-29 2020-04-07 中国银行股份有限公司 Data access method and device
CN112068875A (en) * 2020-08-04 2020-12-11 广州太平洋电脑信息咨询有限公司 System and method for realizing thread filtering strategy based on java dynamic loading
CN113806389A (en) * 2021-09-22 2021-12-17 未鲲(上海)科技服务有限公司 Data processing method and device, computing equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004288076A (en) * 2003-03-25 2004-10-14 Hitachi Information Systems Ltd Method of access to native library
CN101894167A (en) * 2010-07-26 2010-11-24 武汉大学 User event model-driven network map service method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004288076A (en) * 2003-03-25 2004-10-14 Hitachi Information Systems Ltd Method of access to native library
CN101894167A (en) * 2010-07-26 2010-11-24 武汉大学 User event model-driven network map service method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
CLEVERPIG: "Java Annotation入门", 《HTTP://WWW.BLOGJAVA.NET/ERICWANG/ARCHIVE/2005/12/13/23743.HTML》, 13 December 2005 (2005-12-13), pages 1 - 7 *
ED ORT等: "Java Architecture for XML Binding (JAXB)", 《HTTP://WWW.ORACLE.COM/TECHNETWORK/ARTICLES/JAVASE/INDEX-140168.HTML#XMP2》, 31 March 2003 (2003-03-31), pages 4 - 5 *
HANQUNFENG: "Spring基于注解的缓存配置--EHCache AND OSCache", 《HTTP://HANQUNFENG.ITEYE.COM/BLOG/603719》, 26 February 2010 (2010-02-26), pages 6 - 9 *
MGOANN: "Ehcache缓存配置", 《HTTP://MGOANN.ITEYE.COM/BLOG/369725》, 17 April 2009 (2009-04-17), pages 1 - 7 *
WINDY444: "缓存过滤器(J2EE design pattern摘记及感想3)", 《HTTP://BLOG.CSDN.NET/WINDY444/ARTICLE/DETAILS/2007776》, 1 January 2008 (2008-01-01), pages 1 *

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609494B (en) * 2012-01-21 2015-04-22 北京恒华伟业科技股份有限公司 Method for processing data of machine account and device
CN102609494A (en) * 2012-01-21 2012-07-25 北京恒华伟业科技股份有限公司 Method for processing data of machine account and device
CN105100289A (en) * 2015-09-24 2015-11-25 中邮科通信技术股份有限公司 Web caching method based on comment description
CN106933644A (en) * 2015-12-31 2017-07-07 北京国双科技有限公司 Data processing method and device
CN107291779A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Data cached management method and device
CN105930171A (en) * 2016-05-13 2016-09-07 乐视控股(北京)有限公司 Distributed uniform cache realization method, device and system
CN106445505A (en) * 2016-08-31 2017-02-22 恒生电子股份有限公司 Code processing method and device
CN108628891A (en) * 2017-03-21 2018-10-09 北京京东尚科信息技术有限公司 Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer
CN107463378A (en) * 2017-07-28 2017-12-12 深圳市丰巢科技有限公司 A kind of local cache implementation method, storage device and electronic equipment based on note
CN107436769A (en) * 2017-08-07 2017-12-05 安徽优易思信息技术有限责任公司 The amending method and device of a kind of cached configuration
CN107817972B (en) * 2017-11-03 2021-11-23 泰康保险集团股份有限公司 Cache code processing method and device, storage medium and electronic equipment
CN107817972A (en) * 2017-11-03 2018-03-20 泰康保险集团股份有限公司 Cache code process method, apparatus, storage medium and electronic equipment
CN107861751A (en) * 2017-11-22 2018-03-30 出门问问信息科技有限公司 The amending method and device of configuration file
CN109299019A (en) * 2018-08-15 2019-02-01 福建联迪商用设备有限公司 A kind of method and terminal for generating buffer zone and caching key assignments
CN109634653A (en) * 2018-11-30 2019-04-16 中链科技有限公司 A kind of resource allocation method and device based on component based architecture
CN109634653B (en) * 2018-11-30 2023-08-01 苏州朗润创新知识产权运营有限公司 Resource allocation method and device based on componentized architecture
CN110221829A (en) * 2019-05-10 2019-09-10 杭州米雅信息科技有限公司 Information processing method and its system, computer system and computer-readable medium
CN110968603A (en) * 2019-11-29 2020-04-07 中国银行股份有限公司 Data access method and device
CN112068875A (en) * 2020-08-04 2020-12-11 广州太平洋电脑信息咨询有限公司 System and method for realizing thread filtering strategy based on java dynamic loading
CN112068875B (en) * 2020-08-04 2024-05-17 广州太平洋电脑信息咨询有限公司 System and method for realizing thread filtering strategy based on java dynamic loading
CN113806389A (en) * 2021-09-22 2021-12-17 未鲲(上海)科技服务有限公司 Data processing method and device, computing equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102043653A (en) Cache system and methods for modifying cache configuration and operating and querying cache data
CN102741843B (en) Method and apparatus for reading data from database
CN107247808B (en) Distributed NewSQL database system and picture data query method
US9575976B2 (en) Methods and apparatuses to optimize updates in a file system based on birth time
CN101315628B (en) Internal memory database system and method and device for implementing internal memory data base
CN103023982B (en) Low-latency metadata access method of cloud storage client
JP2769100B2 (en) Parallel tables for data models with inheritance
WO2012114531A1 (en) Computer system and data management method
CN102385611A (en) Reducing locking during database transactions
KR20110032343A (en) An apparatus and method for logging optimization using non-volatile memory
CN102682052A (en) Filtering queried data on data stores
CN101609473B (en) Method and device for reconstructing structured query language of report inquiry
CN103106286A (en) Method and device for managing metadata
US6941309B2 (en) Object integrated management system
CN103559319A (en) Cache synchronization method and equipment for distributed cluster file system
CN101067820A (en) Method for prefetching object
Lovelace et al. VSAM demystified
CN104423982A (en) Request processing method and device
CN101174222A (en) Data version upgrading method
Xu et al. Building a fast and efficient LSM-tree store by integrating local storage with cloud storage
CN103207872A (en) Real-time indexing method and server
Gehani et al. Efficient querying of distributed provenance stores
CN103077214A (en) File storage method and device
US12007997B2 (en) Metadata search via N-gram index
CN102004800A (en) Data query method and device of PDM (Product Data Management) system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110504