CN101557390A - Method for improving system performance by flexibly using cache technology - Google Patents

Method for improving system performance by flexibly using cache technology Download PDF

Info

Publication number
CN101557390A
CN101557390A CNA200810103859XA CN200810103859A CN101557390A CN 101557390 A CN101557390 A CN 101557390A CN A200810103859X A CNA200810103859X A CN A200810103859XA CN 200810103859 A CN200810103859 A CN 200810103859A CN 101557390 A CN101557390 A CN 101557390A
Authority
CN
China
Prior art keywords
server
resource
buffer memory
expired
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
Application number
CNA200810103859XA
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.)
Beijing Wenyan Technology Co Ltd
Original Assignee
Beijing Wenyan Technology 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 Beijing Wenyan Technology Co Ltd filed Critical Beijing Wenyan Technology Co Ltd
Priority to CNA200810103859XA priority Critical patent/CN101557390A/en
Publication of CN101557390A publication Critical patent/CN101557390A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

A method for improving system performance by flexibly using a cache technology comprises the following steps: firstly, a client terminal sends a request for downloading sources to a server and appoints a source ID; the server uses the source ID as a cache name to check whether a source exists in a cache, and if the source does not exists in the cache, the server loads the source from a database or other source servers; the servers select a proper overdue policy for the source; the server adds the source to the cache and appoints a reasonable overdue mode; the server returns the source as responsive data to the client terminal; the client terminal sends a request for downloading the source to the server again; the server checks whether the cache exists in the existing cache or not, and if the cache exists, the server checks whether the cache is overdue according to the overdue mode; if the cache is not overdue, the server directly returns the source as a response to the client terminal; and finally, the cache is automatically and regularly cleared to release some overdue sources. The invention flexibly uses the cache technology to improve the system performance.

Description

A kind of caching technology of applying in a flexible way improves the method for systematic function
Technical field
The present invention relates to the method that a kind of caching technology of applying in a flexible way improves systematic function, particularly a kind of the employing uses caching technology to improve the method for systematic function in the software development.
Background technology
Provide when service at server to client, use caching technology can buffer memory to live in the result of time computing, when receive client-requested next time, will not need computing once more, will significantly improve systematic function.Buffer memory needs expired time, and the expired mode of buffer memory need be configured neatly, in the design of buffer memory, should take out interface expired time as a kind of strategy, is convenient to expand neatly.Need a kind of interface that can check buffer memory, so that carry out the tuning of buffer memory.
Summary of the invention
Technical problem to be solved by this invention provides a kind of the employing and uses caching technology to improve the method for systematic function in the software development.
A kind of caching technology of applying in a flexible way of the present invention improves the method for systematic function, and this method comprises following step at least:
Step 1: user end to server is initiated the request of downloaded resources, and allocated resource ID.
Step 2: server as the buffer memory title, checks in the buffer memory whether this resource is arranged with resource ID, if this resource not then loads from database or other Resource Server.
Step 3: server is the suitable expired strategy of this resource selection.
Step 4: server is added to this resource in the buffer memory, and is appointed as rational expired mode.
Step 5: server returns to client to resource as reply data.
Step 6: client is initiated the request of downloaded resources once more to server.
Step 7: server checks in the buffer memory whether this buffer memory is arranged, if this buffer memory is arranged, then checks according to expired mode whether it is expired.
Step 8: expired if buffer memory does not have, then directly this resource is returned to client as replying.
Step 9: regularly clear up buffer memory automatically, discharge some expired resources.
A kind of caching technology of applying in a flexible way of the present invention improves the method for systematic function, and server the steps include: for the suitable expired strategy of this resource selection
Step 31:, can be appointed as never expired buffer memory in program running if this resource can not change all the time.
Step 32:, then can specify expired buffer memory of set time after the duration of an appointment if this resource may change.
Step 33: if this resource depends on a file modifying time, for example this resource loads from this document, can be appointed as the buffer memory that relies on the file modification time.
Step 34: can according to circumstances specify the more buffer memory of science, for example short expired time can be set when beginning, along with the frequent degree of its visit constantly increases expired time.
Step 35:, can various expired modes be grouped together neatly by integrated mode if this buffer memory depends on above-mentioned multiple expired mode simultaneously.
A kind of caching technology of applying in a flexible way that the present invention relates to improves the method for systematic function, and the feasible caching technology of applying in a flexible way improves systematic function.
Description of drawings
Fig. 1 is a flow chart of the present invention.
Embodiment
Referring to Fig. 1, key step of the present invention is as follows:
Step 1: user end to server is initiated the request of downloaded resources, and allocated resource ID.
Step 2: server as the buffer memory title, checks in the buffer memory whether this resource is arranged with resource ID, if this resource not then loads from database or other Resource Server.
Step 3: server is the suitable expired strategy of this resource selection.
Step 4: server is added to this resource in the buffer memory, and is appointed as rational expired mode.
Step 5: server returns to client to resource as reply data.
Step 6: client is initiated the request of downloaded resources once more to server.
Step 7: server checks in the buffer memory whether this buffer memory is arranged, if this buffer memory is arranged, then checks according to expired mode whether it is expired.
Step 8: expired if buffer memory does not have, then directly this resource is returned to client as replying.
Step 9: regularly clear up buffer memory automatically, discharge some expired resources.
Above-mentioned steps 3 servers are that the concrete steps of the suitable expired strategy of this resource selection are as follows:
Step 31:, can be appointed as never expired buffer memory in program running if this resource can not change all the time.
Step 32:, then can specify expired buffer memory of set time after the duration of an appointment if this resource may change.
Step 33: if this resource depends on a file modifying time, for example this resource loads from this document, can be appointed as the buffer memory that relies on the file modification time.
Step 34: can according to circumstances specify the more buffer memory of science, for example short expired time can be set when beginning, along with the frequent degree of its visit constantly increases expired time.
Step 35:, can various expired modes be grouped together neatly by integrated mode if this buffer memory depends on above-mentioned multiple expired mode simultaneously.
Above-mentioned technical scheme provides a kind of caching technology of applying in a flexible way to improve systematic function when implementing.
It should be noted last that above embodiment is only in order to explanation and unrestricted technical scheme described in the invention; Therefore, although this specification has been described in detail the present invention with reference to the above embodiments,, those of ordinary skill in the art should be appreciated that still and can make amendment or replacement to the present invention with being equal to; And all do not break away from the technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in the middle of the claim scope of the present invention.

Claims (2)

1, a kind of caching technology of applying in a flexible way improves the method for systematic function, it is characterized in that: this method comprises following step at least:
Step 1: user end to server is initiated the request of downloaded resources, and allocated resource ID.
Step 2: server as the buffer memory title, checks in the buffer memory whether this resource is arranged with resource ID, if this resource not then loads from database or other Resource Server.
Step 3: server is the suitable expired strategy of this resource selection.
Step 4: server is added to this resource in the buffer memory, and is appointed as rational expired mode.
Step 5: server returns to client to resource as reply data.
Step 6: client is initiated the request of downloaded resources once more to server.
Step 7: server checks in the buffer memory whether this buffer memory is arranged, if this buffer memory is arranged, then checks according to expired mode whether it is expired.
Step 8: expired if buffer memory does not have, then directly this resource is returned to client as replying.
Step 9: regularly clear up buffer memory automatically, discharge some expired resources.
2, a kind of caching technology of applying in a flexible way according to claim 1 improves the method for systematic function, and it is characterized in that: server is the suitable expired strategy of this resource selection, the steps include:
Step 31:, can be appointed as never expired buffer memory in program running if this resource can not change all the time.
Step 32:, then can specify expired buffer memory of set time after the duration of an appointment if this resource may change.
Step 33: if this resource depends on a file modifying time, for example this resource loads from this document, can be appointed as the buffer memory that relies on the file modification time.
Step 34: can according to circumstances specify the more buffer memory of science, for example short expired time can be set when beginning, along with the frequent degree of its visit constantly increases expired time.
Step 35:, can various expired modes be grouped together neatly by integrated mode if this buffer memory depends on above-mentioned multiple expired mode simultaneously.
CNA200810103859XA 2008-04-11 2008-04-11 Method for improving system performance by flexibly using cache technology Pending CN101557390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200810103859XA CN101557390A (en) 2008-04-11 2008-04-11 Method for improving system performance by flexibly using cache technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810103859XA CN101557390A (en) 2008-04-11 2008-04-11 Method for improving system performance by flexibly using cache technology

Publications (1)

Publication Number Publication Date
CN101557390A true CN101557390A (en) 2009-10-14

Family

ID=41175336

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810103859XA Pending CN101557390A (en) 2008-04-11 2008-04-11 Method for improving system performance by flexibly using cache technology

Country Status (1)

Country Link
CN (1) CN101557390A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479355A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and device for loading business documents and mobile terminal
CN102761527A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Method and system for accessing services in clusters
CN103401950A (en) * 2013-08-21 2013-11-20 网宿科技股份有限公司 Cache asynchronism refreshment method, as well as method and system for processing requests by cache server
CN104753966A (en) * 2013-12-25 2015-07-01 明博教育科技有限公司 Resource file inquiry method and system based on server and client caches
CN104917829A (en) * 2015-05-27 2015-09-16 努比亚技术有限公司 Background data management method and device
CN103763136B (en) * 2014-01-07 2017-04-12 北京奇虎科技有限公司 White list maintaining method and device
CN106599152A (en) * 2016-12-07 2017-04-26 北京华夏电通科技有限公司 Data caching method and system
CN108536617A (en) * 2018-03-30 2018-09-14 网易宝有限公司 Buffer memory management method, medium, system and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479355A (en) * 2010-11-30 2012-05-30 金蝶软件(中国)有限公司 Method and device for loading business documents and mobile terminal
CN102761527A (en) * 2011-04-28 2012-10-31 腾讯科技(深圳)有限公司 Method and system for accessing services in clusters
CN102761527B (en) * 2011-04-28 2016-02-17 腾讯科技(深圳)有限公司 The access method of serving in cluster and system
CN103401950A (en) * 2013-08-21 2013-11-20 网宿科技股份有限公司 Cache asynchronism refreshment method, as well as method and system for processing requests by cache server
CN104753966A (en) * 2013-12-25 2015-07-01 明博教育科技有限公司 Resource file inquiry method and system based on server and client caches
CN103763136B (en) * 2014-01-07 2017-04-12 北京奇虎科技有限公司 White list maintaining method and device
CN104917829A (en) * 2015-05-27 2015-09-16 努比亚技术有限公司 Background data management method and device
CN106599152A (en) * 2016-12-07 2017-04-26 北京华夏电通科技有限公司 Data caching method and system
CN108536617A (en) * 2018-03-30 2018-09-14 网易宝有限公司 Buffer memory management method, medium, system and electronic equipment
CN108536617B (en) * 2018-03-30 2021-03-05 网易宝有限公司 Cache management method, medium, system and electronic device

Similar Documents

Publication Publication Date Title
CN101557390A (en) Method for improving system performance by flexibly using cache technology
US7818740B2 (en) Techniques to perform gradual upgrades
CN100411341C (en) Parallel downloading method and terminal
CN101408899B (en) Method and apparatus for switching website multiple data sources
CN101656789B (en) Method for managing application information of mobile phone and application program manager
CN103188097A (en) Method, device and system achieving patch management
CN104954468A (en) Resource allocation method and resource allocation device
MX2009001641A (en) Dynamically configuring, allocating and deploying computing systems.
CN1668010A (en) Tag-based schema for distributing update metadata in an update distribution system
US20080301691A1 (en) Method for improving run-time execution of an application on a platform based on application metadata
CN103729247A (en) Data acquisition request processing method and system and server
US20020184372A1 (en) Application managing apparatus
US20150100961A1 (en) Operating Programs on a Computer Cluster
CN103370917A (en) Message processing method and server
CN105843647A (en) Application installation method and device
CN102546674A (en) Directory tree caching system and method based on network storage device
CN110134738A (en) Distributed memory system resource predictor method, device
CN113961346A (en) Data cache management and scheduling method and device, electronic equipment and storage medium
CN105700877A (en) Application deployment method and apparatus
CN103647811A (en) A method and an apparatus for application's accessing backstage service
CN105404530A (en) System and method for realizing simple deployment and using private cloud
CN106484458A (en) A kind of open software warehouse management system and its management method
CN105427149A (en) Cross-border e-commerce BPO service method and device based on SOA expansion framework
US10402373B1 (en) Filesystem redirection
CN101526959A (en) Data storing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20091014