CN106372266A - Cache and accessing method of cloud operation system based on aspects and configuration documents - Google Patents
Cache and accessing method of cloud operation system based on aspects and configuration documents Download PDFInfo
- Publication number
- CN106372266A CN106372266A CN201611047262.9A CN201611047262A CN106372266A CN 106372266 A CN106372266 A CN 106372266A CN 201611047262 A CN201611047262 A CN 201611047262A CN 106372266 A CN106372266 A CN 106372266A
- Authority
- CN
- China
- Prior art keywords
- tangent plane
- cache object
- access
- cache
- target cache
- 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; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a cache and accessing method of a cloud operation system based on aspects and configuration documents. The cache and accessing method comprises the following steps of firstly, storing a target cache object meeting a preset cache rule into a cache area; inputting the context information of a call method of the target cache object in the configuration document into an aspect by an AOP (aspect-oriented programming) technique; after an accessing request of a user is received, judging whether the corresponding context information of the call method exists or not through the aspect; when the corresponding context information of the call method exists, directly reading the accessing data from the cache area, and returning back to the user; when the corresponding context information of the call method does not exist, directly reading the accessing data from a database, and returning back to the user. Compared with the prior art, the cache and accessing method has the advantages that the target cache object meeting the preset cache rule is screened and cached, so that the cache space is saved, and the cache stress is relieved; the target cache object meeting the preset cache rule is cached, so that the speed of responding the request is improved when the user proposes the accessing request.
Description
Technical field
The present invention relates to cloud operation system technology field, more particularly to a kind of cloud operation based on tangent plane and configuration file
System cache and access method.
Background technology
Cloud computing technology is just developed with very fast speed, and internet cloud, government affairs cloud etc. also gradually penetrate into our daily
Life, as the administrative center on backstage, the resource of management is more and more numerous and more jumbled and diversification, user's request for cloud operating system
More and more, the performance of system also requires that more and more higher.
For a large-scale system, the experience of user is very important, if the response of system is very fast,
Good experience can be brought to client.A direct method improving response speed is exactly will to access the side that data is passed through to cache
Formula stores to buffer zone, it is to avoid access data base, such that it is able to improve the speed of access.But, in order to improve response speed,
In prior art, whole access data is all stored to buffer zone, as long as user has access request with regard to direct access cache
Region, therefore, the pressure of buffer zone will be very big, and the capacity of buffer zone is also limited.Therefore by whole visits
It is infeasible for asking that data all caches to buffer zone.
As can be seen here, how to improve the speed of respond request and solution caching pressure is that those skilled in the art are urgently to be resolved hurrily
Problem.
Content of the invention
It is an object of the invention to provide a kind of cloud operating system caching based on tangent plane and configuration file and access method, use
In the speed improving respond request and solution caching pressure.
For solve above-mentioned technical problem, the present invention provide a kind of based on tangent plane and configuration file cloud operating system caching and
Access method, comprising:
The target cache object meeting preset buffer memory rule is stored to buffer zone;
In configuration file, the contextual information of the call method of described target cache object is imported using aop technology and cut
In face;
When receiving the access request of user, the upper and lower of corresponding call method is judged whether by described tangent plane
Civilian information, to determine whether corresponding access data stores to described buffer zone as described target cache object;
If it is, directly reading described access data from described buffer zone, and be back to described user;
If it is not, then directly reading described access data from data base, and be back to described user.
Preferably, what the contextual information of described call method specifically included described call method calls object, described tune
With the method name of method or the execution parameter of described call method.
Preferably, being additionally included in described tangent plane is described target cache object setting inquiry unique key assignments used.
Preferably, described directly read described access data from described buffer zone, and it is concrete to be back to described user
Including:
Described buffer zone is inquired about by described inquiry unique key assignments used and obtains described access data;
Read described access data, and be back to described user.
Preferably, described inquiry unique key assignments used specifically includes the title of described target cache object, described calls
The execution parameter of the method name of method or described call method.
Preferably, if described preset buffer memory rule is particularly as follows: the access frequency of cache object is more than predeterminated frequency and change
Cycle is more than predetermined period, then this cache object is just described target cache object.
Preferably, it is additionally included in the contextual information adding the new call method of target cache object in described tangent plane.
Preferably, it is additionally included in the context letter of the call method deleting specific target cache object in described tangent plane
Breath.
Cloud operating system caching based on tangent plane and configuration file provided by the present invention and access method, will meet first
The target cache object of preset buffer memory rule stores to buffer zone;Using aop technology in configuration file by target cache pair
The contextual information of the call method of elephant imports in tangent plane.Then, when receiving the access request of user, judged by tangent plane
Contextual information with the presence or absence of corresponding call method.If it is, direct read access data from buffer zone, and return
It is back to user;If it is not, then direct read access data from data base, and it is back to user.As can be seen here, this method is relative
For prior art, filter out and meet the target cache object of preset buffer memory rule and enter row cache, thus it is empty to have saved caching
Between, alleviate caching pressure;And the target cache object meeting preset buffer memory rule is entered row cache, then can enter in user
Improve the speed of respond request during the corresponding access request of row.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention, the accompanying drawing of use required in embodiment will be done simply below
Introduce it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people
For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of cloud operating system caching based on tangent plane and configuration file provided in an embodiment of the present invention and access side
The flow chart of method;
Fig. 2 is another kind of cloud operating system caching based on tangent plane and configuration file provided in an embodiment of the present invention and accesses
The flow chart of method.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, under the premise of not making creative work, obtained is every other for those of ordinary skill in the art
Embodiment, broadly falls into the scope of the present invention.
The core of the present invention is to provide a kind of caching of the cloud operating system based on tangent plane and configuration file and access method, uses
In the speed improving respond request and solution caching pressure.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Embodiment one
Fig. 1 is a kind of cloud operating system caching based on tangent plane and configuration file provided in an embodiment of the present invention and access side
The flow chart of method.As shown in figure 1, comprising the following steps:
S10: the target cache object meeting preset buffer memory rule is stored to buffer zone.
Due in prior art, being to store to buffer zone whole access data as cache object, though so
The speed of respond request so can be improved, but the pressure for spatial cache is huge.And in being embodied as, also not
The access data being whole is required for carrying out caching, this is because the access frequency of some access data is very high, for this
The data of sample caches as cache object and is a need for buffer zone, and comes for the very low data of those access frequencys
Say, do not need into row cache.Therefore in the present embodiment, target cache to liking through garbled, that is, meets preset buffer memory
The cache object of rule just can become target cache object.
Specifically, preset buffer memory rule can be set according to actual access demand, as preferred embodiment, in advance
If if caching rule is particularly as follows: the access frequency of cache object is more than predeterminated frequency and the cycle of changing is more than predetermined period, should
Cache object is just target cache object.
For example in being embodied as, the number of visiting people for server has restriction, when each user conducts interviews, is both needed to
Access the higher limit of permission number, and the access frequency of this number of visiting people is very high, and infrequently change, then access
Number just meets preset buffer memory rule, you can think target cache object, and the higher limit accessing permission number is exactly this target
The concrete data of cache object, or be exactly user's request corresponding access data.
S11: in configuration file, the contextual information of the call method of target cache object is imported using aop technology and cut
In face.
It is understood that potentially including multiple call methods in configuration file in cloud operating system, in the present embodiment,
The contextual information of the call method of target cache object is imported in tangent plane, in such tangent plane, just includes these call methods
Contextual information.The presence of tangent plane is exactly to carry out one before user directly calls corresponding access data by call method
Intercept operation, detailed process sees below.
Preferably embodiment, what the contextual information of call method specifically included call method calls object, tune
With the method name of method or the execution parameter of call method.
It is understood that the contextual information of call method is to carry out follow-up judgement, as long as therefore can be real
The index now judging can be it is not limited to above-mentioned three kinds.
S12: when receiving the access request of user, the upper and lower of corresponding call method is judged whether by tangent plane
Civilian information.If it is, entering s13: if it is not, then entering s14.
When receiving the access request of user, first determine whether to whether there is call corresponding with this access request on tangent plane
The contextual information of method, if it has, then illustrating that the corresponding cache object of this access request is target cache object, then corresponding
Access data just to store to buffer zone.If it was not then illustrating that the corresponding cache object of this access request is not that target is delayed
Deposit object, then corresponding access data is not just to store to buffer zone.In other words, the step for is exactly right in order to determine
Whether the access data answered stores to buffer zone as target cache object.
S13: directly read access data from buffer zone, and it is back to user.
S14: directly read access data from data base, and it is back to user.
If it is understood that accessing data storage to buffer zone, directly reading this visit from buffer zone
Ask data, and be back to user, during being somebody's turn to do, data base need not be visited again, therefore saved the time reading data, carried
The high speed of respond request.
If accessing data not storing to buffer zone, from data base, directly reading this access data, and return
It is back to user, during being somebody's turn to do, data storage need not be accessed to buffer zone, the pressure of spatial cache can be alleviated.
The cloud operating system caching based on tangent plane and configuration file and access method that the present embodiment provides, will meet first
The target cache object of preset buffer memory rule stores to buffer zone;Using aop technology in configuration file by target cache pair
The contextual information of the call method of elephant imports in tangent plane.Then, when receiving the access request of user, judged by tangent plane
Contextual information with the presence or absence of corresponding call method.If it is, direct read access data from buffer zone, and return
It is back to user;If it is not, then direct read access data from data base, and it is back to user.As can be seen here, this method is relative
For prior art, filter out and meet the target cache object of preset buffer memory rule and enter row cache, thus it is empty to have saved caching
Between, alleviate caching pressure;And the target cache object meeting preset buffer memory rule is entered row cache, then can enter in user
Improve the speed of respond request during the corresponding access request of row.
Embodiment two
Fig. 2 is another kind of cloud operating system caching based on tangent plane and configuration file provided in an embodiment of the present invention and accesses
The flow chart of method.As shown in Fig. 2 on the basis of above-described embodiment, also comprising the steps:
S20: the unique key assignments used by the setting inquiry of target cache object in tangent plane.
The subsequently inquiry in buffer zone for convenience, therefore, arranges one for target cache object in the present embodiment
Inquiry unique key assignments used, can uniquely determine a target cache object by this key assignments in buffer zone, from
And can quickly read.It is understood that being provided with inquiry unique key assignments used if target cache object, then permissible
Obtain accessing data by inquiry unique key assignments query caching region used;Then read access data, and it is back to use
Family.
Preferably embodiment, inquiry unique key assignments used specifically includes the title of target cache object, calls
The execution parameter of the method name of method or call method.
It is understood that inquiry unique key assignments used can be the parameter of other forms it is not limited to above-mentioned three
Kind.
On the basis of above-described embodiment, the cloud operating system caching based on tangent plane and configuration file and access method are also wrapped
Include: add the contextual information of the new call method of target cache object in tangent plane.
In being embodied as, target cache to as if can change, such as before having a cache object be not
Target cache object, but it meets preset buffer memory rule afterwards, then and this cache object will become target cache object,
It is thus desirable to adding in tangent plane.
Preferably embodiment, also includes: deletes the call method of specific target cache object in tangent plane
Contextual information.
In being embodied as, target cache to as if can change, for example have a cache object as target
Cache object, when its corresponding access data changes, then this cache object is possible to be no longer target cache object,
This target cache object then will be deleted in tangent plane.
Above the cloud operating system based on tangent plane and configuration file provided by the present invention caching and access method are carried out
It is discussed in detail.In description, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and it
The difference of his embodiment, between each embodiment identical similar portion mutually referring to.Fill for disclosed in embodiment
For putting, because it corresponds to the method disclosed in Example, so description is fairly simple, referring to method part in place of correlation
Illustrate.It should be pointed out that for those skilled in the art, in the premise without departing from the principle of the invention
Under, the present invention can also be carried out with some improvement and modify, these improve and modify the protection also falling into the claims in the present invention
In the range of.
Claims (8)
1. a kind of cloud operating system caching based on tangent plane and configuration file and access method are it is characterised in that include:
The target cache object meeting preset buffer memory rule is stored to buffer zone;
In configuration file, the contextual information of the call method of described target cache object is imported tangent plane using aop technology
In;
The context letter of corresponding call method when receiving the access request of user, is judged whether by described tangent plane
Breath, to determine whether corresponding access data stores to described buffer zone as described target cache object;
If it is, directly reading described access data from described buffer zone, and be back to described user;
If it is not, then directly reading described access data from data base, and be back to described user.
2. the cloud operating system caching based on tangent plane and configuration file according to claim 1 and access method, its feature
It is, what the contextual information of described call method specifically included described call method calls object, the side of described call method
The execution parameter of religious name or described call method.
3. the cloud operating system caching based on tangent plane and configuration file according to claim 1 and 2 and access method, it is special
Levy and be, being additionally included in described tangent plane is described target cache object setting inquiry unique key assignments used.
4. the cloud operating system caching based on tangent plane and configuration file according to claim 3 and access method, its feature
Be, described directly read described access data from described buffer zone, and be back to described user and specifically include:
Described buffer zone is inquired about by described inquiry unique key assignments used and obtains described access data;
Read described access data, and be back to described user.
5. the cloud operating system caching based on tangent plane and configuration file according to claim 3 and access method, its feature
It is, described inquiry unique key assignments used specifically includes the title of described target cache object, the method for described call method
Name or the execution parameter of described call method.
6. the cloud operating system caching based on tangent plane and configuration file according to claim 1 and access method, its feature
It is, if described preset buffer memory rule is particularly as follows: the access frequency of cache object is more than predeterminated frequency and the cycle of changing is more than in advance
If the cycle, then this cache object is just described target cache object.
7. the cloud operating system caching based on tangent plane and configuration file according to claim 1 and access method, its feature
It is, be additionally included in the contextual information adding the new call method of target cache object in described tangent plane.
8. the cloud operating system caching based on tangent plane and configuration file according to claim 7 and access method, its feature
It is, be additionally included in the contextual information of the call method deleting specific target cache object in described tangent plane.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611047262.9A CN106372266A (en) | 2016-11-21 | 2016-11-21 | Cache and accessing method of cloud operation system based on aspects and configuration documents |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611047262.9A CN106372266A (en) | 2016-11-21 | 2016-11-21 | Cache and accessing method of cloud operation system based on aspects and configuration documents |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372266A true CN106372266A (en) | 2017-02-01 |
Family
ID=57892601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611047262.9A Pending CN106372266A (en) | 2016-11-21 | 2016-11-21 | Cache and accessing method of cloud operation system based on aspects and configuration documents |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372266A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108256122A (en) * | 2018-02-23 | 2018-07-06 | 武汉斗鱼网络科技有限公司 | Data capture method, device and terminal device based on card |
CN109150993A (en) * | 2018-07-30 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of method, terminal installation and storage medium obtaining network request section |
CN109684086A (en) * | 2018-12-14 | 2019-04-26 | 广东亿迅科技有限公司 | A kind of distributed caching automatic loading method and device based on AOP |
CN110531730A (en) * | 2019-10-16 | 2019-12-03 | 广东紫方环保技术有限公司 | A kind of pollution sources online monitoring system |
CN111078697A (en) * | 2019-12-11 | 2020-04-28 | 秒针信息技术有限公司 | Data storage method and device, storage medium and electronic equipment |
CN113296854A (en) * | 2021-06-23 | 2021-08-24 | 平安壹钱包电子商务有限公司 | Data loading method and system, electronic equipment and storage medium |
CN113377350A (en) * | 2021-06-29 | 2021-09-10 | 中国平安财产保险股份有限公司 | Access request processing method, device, equipment and readable storage medium |
CN113806651A (en) * | 2021-09-18 | 2021-12-17 | 深圳市酷开网络科技股份有限公司 | Data caching method, device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541927A (en) * | 2010-12-30 | 2012-07-04 | 北京新媒传信科技有限公司 | Method and device for realizing data cache |
CN103257859A (en) * | 2013-03-22 | 2013-08-21 | 南京信通科技有限责任公司 | Application of high-performance cache and NUTZ AOP (aspect-oriented programming) technique in education website groups |
CN103793232A (en) * | 2014-02-20 | 2014-05-14 | 浪潮集团山东通用软件有限公司 | Component calling and extending frame implementation method based on AOP |
-
2016
- 2016-11-21 CN CN201611047262.9A patent/CN106372266A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102541927A (en) * | 2010-12-30 | 2012-07-04 | 北京新媒传信科技有限公司 | Method and device for realizing data cache |
CN103257859A (en) * | 2013-03-22 | 2013-08-21 | 南京信通科技有限责任公司 | Application of high-performance cache and NUTZ AOP (aspect-oriented programming) technique in education website groups |
CN103793232A (en) * | 2014-02-20 | 2014-05-14 | 浪潮集团山东通用软件有限公司 | Component calling and extending frame implementation method based on AOP |
Non-Patent Citations (1)
Title |
---|
李龙生: "Spring AOP +EHcach为Service层方法增加缓存", 《HTTPS://BLOG.CSDN.NET/JIAOLONG724/ARTICLE/DETAILS/40918059》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108256122A (en) * | 2018-02-23 | 2018-07-06 | 武汉斗鱼网络科技有限公司 | Data capture method, device and terminal device based on card |
CN109150993A (en) * | 2018-07-30 | 2019-01-04 | 武汉斗鱼网络科技有限公司 | A kind of method, terminal installation and storage medium obtaining network request section |
CN109150993B (en) * | 2018-07-30 | 2021-06-15 | 武汉斗鱼网络科技有限公司 | Method for obtaining network request tangent plane, terminal device and storage medium |
CN109684086A (en) * | 2018-12-14 | 2019-04-26 | 广东亿迅科技有限公司 | A kind of distributed caching automatic loading method and device based on AOP |
CN110531730A (en) * | 2019-10-16 | 2019-12-03 | 广东紫方环保技术有限公司 | A kind of pollution sources online monitoring system |
CN111078697A (en) * | 2019-12-11 | 2020-04-28 | 秒针信息技术有限公司 | Data storage method and device, storage medium and electronic equipment |
CN111078697B (en) * | 2019-12-11 | 2023-11-03 | 秒针信息技术有限公司 | Data storage method and device, storage medium and electronic equipment |
CN113296854A (en) * | 2021-06-23 | 2021-08-24 | 平安壹钱包电子商务有限公司 | Data loading method and system, electronic equipment and storage medium |
CN113296854B (en) * | 2021-06-23 | 2023-02-07 | 平安壹钱包电子商务有限公司 | Data loading method and system, electronic equipment and storage medium |
CN113377350A (en) * | 2021-06-29 | 2021-09-10 | 中国平安财产保险股份有限公司 | Access request processing method, device, equipment and readable storage medium |
CN113806651A (en) * | 2021-09-18 | 2021-12-17 | 深圳市酷开网络科技股份有限公司 | Data caching method, device, server and storage medium |
CN113806651B (en) * | 2021-09-18 | 2024-05-24 | 深圳市酷开网络科技股份有限公司 | Data caching method, device, server and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106372266A (en) | Cache and accessing method of cloud operation system based on aspects and configuration documents | |
KR102097881B1 (en) | Method and apparatus for processing a short link, and a short link server | |
CN103685304A (en) | Method and system for sharing session information | |
EP3049940B1 (en) | Data caching policy in multiple tenant enterprise resource planning system | |
CN101226542B (en) | Method for caching report | |
CN106060004A (en) | Database access method and database agent node | |
US20130024917A1 (en) | Memo synchronization system, mobile system, and method for synchronizing memo data | |
CN106161519B (en) | A kind of information acquisition method and device | |
CN103607424A (en) | Server connection method and server system | |
CN106021566A (en) | Method, device and system for improving concurrent processing capacity of single database | |
CN113254470B (en) | Data modification method, device, computer equipment and storage medium | |
US8965879B2 (en) | Unique join data caching method | |
CN111385264A (en) | Communication service data access system and method | |
CN108268468A (en) | The analysis method and system of a kind of big data | |
CN109947718A (en) | A kind of date storage method, storage platform and storage device | |
JP2019503021A (en) | System environment and user behavior analysis based self-defense security device and its operation method | |
CN105224541B (en) | Uniqueness control method, information storage means and the device of data | |
US11425132B2 (en) | Cross-domain authentication in a multi-entity database system | |
CN113918149A (en) | Interface development method and device, computer equipment and storage medium | |
CN103051623A (en) | Method for limiting calling of open platform | |
CN112818038A (en) | Data management method based on combination of block chain and IPFS (Internet protocol file system) and related equipment | |
US20200311132A1 (en) | Key value store using change values for data properties | |
CN111680069B (en) | Database access method and device | |
US10185729B2 (en) | Index creation method and system | |
CN108287853B (en) | Data relation analysis method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170201 |