CN105786904A - Certificate related access cache management method and apparatus - Google Patents

Certificate related access cache management method and apparatus Download PDF

Info

Publication number
CN105786904A
CN105786904A CN201410823266.6A CN201410823266A CN105786904A CN 105786904 A CN105786904 A CN 105786904A CN 201410823266 A CN201410823266 A CN 201410823266A CN 105786904 A CN105786904 A CN 105786904A
Authority
CN
China
Prior art keywords
type
voucher
cache
subject
cache key
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
CN201410823266.6A
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.)
Yuanguang Software Co Ltd
Original Assignee
Yuanguang Software Co Ltd
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 Yuanguang Software Co Ltd filed Critical Yuanguang Software Co Ltd
Priority to CN201410823266.6A priority Critical patent/CN105786904A/en
Publication of CN105786904A publication Critical patent/CN105786904A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a certificate related access cache management method and apparatus. The method comprises the steps of when a certificate is input for selecting a subject or related data, judging whether related cache data already exists or not according to a predetermined cache keyword, and if the related cache data exists, directly calling the already existent cache data, otherwise, performing access by a remote call server according to related parameters; and after the remote call server performs access, combining key information into a cache keyword according to a business logic, and storing the cache keyword in a page cache object in the form of a key-value pair. According to the method and apparatus, the frequency of interaction with the server is greatly reduced, the system performance is improved, and the user experience is enhanced.

Description

Voucher is correlated with the peek method of cache management and device
Technical field
The present invention relates to Computer Applied Technology field, particularly relate to a kind of voucher and be correlated with the peek method of cache management and device.
Background technology
The relevant access mode of existing voucher is after voucher detail has selected subject, triggers remote method invocation (RMI) and obtains related data, then carries out related service operation.If the detailed data that a newly-increased subject is identical again, can again trigger remote method peek and call, cause repeated accesses service end, directly affect enterprise information system overall performance, and then affect Consumer's Experience effect.
Summary of the invention
In view of above-mentioned analysis, the method for peek cache management and device it is desirable to provide a kind of voucher is correlated with, in order to the problem solving frequently to carry out the performance reduction that far call institute brings to enterprise information system in prior art.
The purpose of the present invention realizes mainly by techniques below scheme:
The invention provides a kind of voucher be correlated with peek cache management method, including:
Select subject or during related data when carrying out voucher typing, judge whether to have according to predetermined cache key relevant data cached, if it has, directly invoke already present data cached;Otherwise, peek according to relevant parameter remote call service end;
After remote call service end is peeked, according to service logic, crucial information is combined into cache key, is stored in page cache object with key-value pair form.
Further, what select if carried out voucher typing is subject, then needs to make a look up in predetermined cache key according to peek type and subject ID of voucher, the corresponding data found is returned to;If carried out voucher typing selection is related data, then needs to make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found is returned to.
Wherein, described voucher peek type includes but not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
Wherein, when obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key;Obtain " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key;Obtain " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key;Obtain " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key;Obtain " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key;Obtain " voucher reconciliation situation ", be with " dzmode " beginning plus subject ID,
Object type ID, management object ID, amount of money type are as cache key.
Present invention also offers a kind of voucher be correlated with peek cache management device, including: judge calling module and cache module, wherein,
Described judgement calling module, for selecting subject or during related data when carrying out voucher typing, judges whether to have relevant data cached, if it has, directly invoke already present data cached according to predetermined cache key;Otherwise, peek according to relevant parameter remote call service end;
Described cache module, for, after described judgement calling module remote call service end is peeked, being combined into cache key according to service logic crucial information, be stored in page cache object with key-value pair form.
Further, described judgement calling module when judging,
If carried out voucher typing selection is subject, then needs according to voucher peek type and subject ID or makes a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found being returned to;If carried out voucher typing selection is related data, then needs to make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found is returned to.
Wherein, described voucher peek type includes but not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
Described judgement calling module when obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key;Obtaining " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key;Obtaining " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key;Obtaining " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key;Obtaining " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key;Obtaining " voucher reconciliation situation ", be using " dzmode " beginning plus subject ID, object type ID, management object ID, amount of money type as cache key.
The present invention has the beneficial effect that:
The present invention decreases greatly the number of times mutual with service end, improves systematic function, strengthens user's experience.
Other features and advantages of the present invention will be set forth in the following description, and, becoming apparent from description of part, or understand by implementing the present invention.The purpose of the present invention and other advantages can be realized by structure specifically noted in the description write, claims and accompanying drawing and be obtained.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method described in the embodiment of the present invention;
Fig. 2 is the structural representation of device described in the embodiment of the present invention.
Detailed description of the invention
Specifically describing the preferred embodiments of the present invention below in conjunction with accompanying drawing, wherein, accompanying drawing constitutes the application part, and is used for together with embodiments of the present invention explaining principles of the invention.
First in conjunction with accompanying drawing 1, method described in the embodiment of the present invention is specifically described.
As it is shown in figure 1, Fig. 1 is the schematic flow sheet of method described in the embodiment of the present invention, specifically may include steps of:
Step 101: carry out voucher typing from client, selects subject or related data;
Step 102: subject or related data according to selecting mate with predetermined cache key;
Step 103: judge whether customer terminal webpage cache object has had relevant data cached, if it has, perform step 106;Otherwise, step 104 is performed;
Step 104: peek according to relevant parameter remote call service end;
It is exactly that if carried out voucher typing selection is subject specifically, then need according to voucher peek type and subject ID or make a look up in service end according to voucher peek type and related data code, the corresponding data found are returned to;
Step 105: after remote call service end is peeked, is combined into cache key according to service logic crucial information, is stored in page cache object with key-value pair form;
Step 106: directly invoke already present data cached.
So, after voucher typing selects identical subject or related data again, from page cache object, directly obtained the data of correspondence by cache key.
Wherein, voucher peek type includes and is not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
For the ease of understanding said method, below will further illustrate with instantiation.
When user passes through client after voucher interface selects subject, the method calling " system account is corresponding " peek type, using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key, then first judge whether page cache object has had data cached, peek without then remote call service end, then in data buffer storage to page cache object and return data.Otherwise directly obtain from page cache and return.If after voucher typing selects identical subject again, cache manager then finds corresponding data to return according to the type come into cache key.Wherein, when obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key.Obtain " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key.Obtain " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key.Obtain " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key.Obtain " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key.Obtain " voucher reconciliation situation ", be using " dzmode " beginning plus subject ID, object type ID, management object ID, amount of money type as cache key.
Next in conjunction with accompanying drawing 2, device described in the embodiment of the present invention is described in detail.
As in figure 2 it is shown, Fig. 2 is the structural representation of device described in the embodiment of the present invention, specifically includes that and judge calling module and cache module, wherein,
Judge calling module, for selecting subject or during related data when carrying out voucher typing, judge whether to have according to predetermined cache key relevant data cached, if it has, directly invoke already present data cached;Otherwise, peek according to relevant parameter remote call service end;Judge that calling module is when judging, if carried out voucher typing selection is subject, so need according to voucher peek type and subject ID or make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found are returned to;If carried out voucher typing selection is related data, then needs to make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found is returned to.
Cache module, for, after judging that calling module remote call service end is peeked, being combined into cache key according to service logic crucial information, be stored in page cache object with key-value pair form.
Above-mentioned voucher peek type of stating includes but not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
When obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key;Obtain " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key;Obtain " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key;Obtain " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key;Obtain " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key;Obtain " voucher reconciliation situation ", be using " dzmode " beginning plus subject ID, object type ID, management object ID, amount of money type as cache key.
Process is implemented for device described in the embodiment of the present invention, owing to said method being described in detail, so place repeats no more.
In sum, embodiments provide a kind of voucher to be correlated with the peek method of cache management and device, after adopting voucher of the present invention relevant peek cache management, compared with operation in the past, after selecting identical subject, do not need the method repeating to call the peek of remote access service end to obtain data, voucher relevant peek cache manager from page cache, obtain related data according to peek type and cache key and return.In the purpose voucher typing operation of multiple identical sections, greatly reduce the number of times mutual with service end, thus reaching to reduce server stress, improving systematic function, strengthening user's experience.
It will be understood by those skilled in the art that all or part of flow process realizing above-described embodiment method, it is possible to the hardware carrying out instruction relevant by computer program completes, and described program can be stored in computer-readable recording medium.Wherein, described computer-readable recording medium is disk, CD, read-only store-memory body or random store-memory body etc..
The above; being only the present invention preferably detailed description of the invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should be encompassed within protection scope of the present invention.

Claims (8)

1. a voucher is correlated with the method for peek cache management, it is characterised in that including:
Select subject or during related data when carrying out voucher typing, judge whether to have according to predetermined cache key relevant data cached, if it has, directly invoke already present data cached;Otherwise, peek according to relevant parameter remote call service end;
After remote call service end is peeked, according to service logic, crucial information is combined into cache key, is stored in page cache object with key-value pair form.
2. method according to claim 1, it is characterised in that farther include:
If carried out voucher typing selection is subject, then needs to make a look up in predetermined cache key according to voucher peek type and subject ID, the corresponding data found is returned to;If carried out voucher typing selection is related data, then needs to make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found is returned to.
3. method according to claim 1 and 2, it is characterised in that described voucher peek type includes but not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
4. the method according to any one in Claim 1-3, it is characterised in that
When obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key;Obtain " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key;Obtain " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key;Obtain " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key;Obtain " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key;Obtain " voucher reconciliation situation ", be using " dzmode " beginning plus subject ID, object type ID, management object ID, amount of money type as cache key.
5. a voucher is correlated with the device of peek cache management, it is characterised in that including: judge calling module and cache module, wherein,
Described judgement calling module, for selecting subject or during related data when carrying out voucher typing, judges whether to have relevant data cached, if it has, directly invoke already present data cached according to predetermined cache key;Otherwise, peek according to relevant parameter remote call service end;
Described cache module, for, after described judgement calling module remote call service end is peeked, being combined into cache key according to service logic crucial information, be stored in page cache object with key-value pair form.
6. device according to claim 5, it is characterised in that described judgement calling module when judging,
If carried out voucher typing selection is subject, then needs according to voucher peek type and subject ID or makes a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found being returned to;If carried out voucher typing selection is related data, then needs to make a look up in predetermined cache key according to voucher peek type and related data code, the corresponding data found is returned to.
7. the device according to claim 5 or 6, it is characterised in that described voucher peek type includes but not limited to following one or more:
System account is corresponding, a situation arises for foreign currency, foreign currency type information, foreign exchange rate information, quantity accounts information, voucher reconciliation situation.
8. the device according to any one in claim 5 to 7, it is characterized in that, described judgement calling module when obtaining " account corresponding data ", be using " xtcacVO " beginning plus subject ID, type of service ID, amount of money type, accreditation date and accreditation unit as cache key;Obtaining " a situation arises for foreign currency ", be using " xtmoneysortVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID, phase in odd-numbered day processed, object ID and object type as cache key;Obtaining " foreign currency type information ", be using " xtmoneyVOs " beginning plus currency code as cache key;Obtaining " foreign exchange rate information ", be using " xtmoneyrateVOs " beginning plus standard coin code, foreign currency code and accreditation date as cache key;Obtaining " quantity accounts information ", be using " numberaccountVO " beginning plus unit designator code, type of service ID, amount of money type, subject ID and accreditation date as cache key;Obtaining " voucher reconciliation situation ", be using " dzmode " beginning plus subject ID, object type ID, management object ID, amount of money type as cache key.
CN201410823266.6A 2014-12-24 2014-12-24 Certificate related access cache management method and apparatus Pending CN105786904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410823266.6A CN105786904A (en) 2014-12-24 2014-12-24 Certificate related access cache management method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410823266.6A CN105786904A (en) 2014-12-24 2014-12-24 Certificate related access cache management method and apparatus

Publications (1)

Publication Number Publication Date
CN105786904A true CN105786904A (en) 2016-07-20

Family

ID=56388725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410823266.6A Pending CN105786904A (en) 2014-12-24 2014-12-24 Certificate related access cache management method and apparatus

Country Status (1)

Country Link
CN (1) CN105786904A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153783A (en) * 2016-12-06 2018-06-12 腾讯科技(北京)有限公司 A kind of method and apparatus of data buffer storage
CN114416404A (en) * 2022-01-27 2022-04-29 中国建设银行股份有限公司 Remote procedure calling method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882266A (en) * 2010-06-22 2010-11-10 方志忠 Account making system for medium-sized and small enterprises
CN102682037A (en) * 2011-03-18 2012-09-19 阿里巴巴集团控股有限公司 Data acquisition method, system and device
CN102930024A (en) * 2011-11-03 2013-02-13 微软公司 A data quality solution architecture based on knowledge
CN103473284A (en) * 2013-08-29 2013-12-25 北京华财理账顾问有限公司 Electronic certificate management system and electronic certificate management method
CN103488720A (en) * 2013-09-12 2014-01-01 金蝶软件(中国)有限公司 Method, system and client for viewing data
CN103490886A (en) * 2012-06-12 2014-01-01 阿里巴巴集团控股有限公司 Permission data validation method, device and system
US9477609B2 (en) * 2013-04-22 2016-10-25 Sap Se Enhanced transactional cache with bulk operation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882266A (en) * 2010-06-22 2010-11-10 方志忠 Account making system for medium-sized and small enterprises
CN102682037A (en) * 2011-03-18 2012-09-19 阿里巴巴集团控股有限公司 Data acquisition method, system and device
CN102930024A (en) * 2011-11-03 2013-02-13 微软公司 A data quality solution architecture based on knowledge
CN103490886A (en) * 2012-06-12 2014-01-01 阿里巴巴集团控股有限公司 Permission data validation method, device and system
US9477609B2 (en) * 2013-04-22 2016-10-25 Sap Se Enhanced transactional cache with bulk operation
CN103473284A (en) * 2013-08-29 2013-12-25 北京华财理账顾问有限公司 Electronic certificate management system and electronic certificate management method
CN103488720A (en) * 2013-09-12 2014-01-01 金蝶软件(中国)有限公司 Method, system and client for viewing data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴秀松: "基于 AOP 设计模式的财务系统的设计和实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153783A (en) * 2016-12-06 2018-06-12 腾讯科技(北京)有限公司 A kind of method and apparatus of data buffer storage
CN108153783B (en) * 2016-12-06 2020-10-02 腾讯科技(北京)有限公司 Data caching method and device
CN114416404A (en) * 2022-01-27 2022-04-29 中国建设银行股份有限公司 Remote procedure calling method and device

Similar Documents

Publication Publication Date Title
US9967159B2 (en) Systems and methods for providing decision time brokerage in a hybrid cloud ecosystem
US8996647B2 (en) Optimizing storage between mobile devices and cloud storage providers
US20160379125A1 (en) Provisioning service requests in a computer system
US11295247B2 (en) Discovery and generation of organizational key performance indicators utilizing glossary repositories
EP3346379A1 (en) Database management system with dynamic allocation of database requests
WO2018223941A1 (en) Device and method for issuing multiple insurance policies and computer readable storage medium
JP2017514218A (en) Running third-party applications
CN111199379A (en) Examination and approval method, examination and approval device and storage medium of workflow engine
CN111127181A (en) Voucher bookkeeping method and device
US9204175B2 (en) Providing partial file stream for generating thumbnail
US20230269296A1 (en) Method and System for Cache Data Analysis for Enterprise Content Management Systems
Mahmood et al. Adaptive automated teller machines
US20150248673A1 (en) Methods and apparatus for a token management system for transactions
CN105786904A (en) Certificate related access cache management method and apparatus
CN110858242A (en) Page skipping method and device
CN110782310B (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
US20170249697A1 (en) System and method for machine learning based line assignment
CN110659982A (en) Method and device for large-volume business credit granting and electronic equipment
US20100030599A1 (en) Method and apparatus for integrating health care payers and provider systems with health care transaction systems using a single hipaa edi response generation component
US12008399B2 (en) Optimization for scheduling of batch jobs
CN110309213A (en) A kind of Access and control strategy of database method, apparatus, system, medium and equipment
US9641608B2 (en) Network relocation of software features through data flow analysis
US20150271028A1 (en) Providing shared account service
US20140149600A1 (en) Method for handling multiple requests by using dataset transfer protocol
CN106104534A (en) Service is collected by the assets of the seizure to content

Legal Events

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

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication