CN1997015B - Cache application method and device, and file transfer system - Google Patents

Cache application method and device, and file transfer system Download PDF

Info

Publication number
CN1997015B
CN1997015B CN2006101452675A CN200610145267A CN1997015B CN 1997015 B CN1997015 B CN 1997015B CN 2006101452675 A CN2006101452675 A CN 2006101452675A CN 200610145267 A CN200610145267 A CN 200610145267A CN 1997015 B CN1997015 B CN 1997015B
Authority
CN
China
Prior art keywords
record
file
file cache
cache record
overtime
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.)
Expired - Fee Related
Application number
CN2006101452675A
Other languages
Chinese (zh)
Other versions
CN1997015A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006101452675A priority Critical patent/CN1997015B/en
Publication of CN1997015A publication Critical patent/CN1997015A/en
Application granted granted Critical
Publication of CN1997015B publication Critical patent/CN1997015B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses one buffer application method and device and file transmission system, wherein, the method comprises the following steps: adding the file buffer record register time and preset super long step and comparing the add result with file buffer record; according to the results judging whether the files buffer record time is super; if yes, deleting the files from buffer area; if not continuing buffer files record. This invention also provides one buffer application device and file transmission system.

Description

Cache application method and device and document transmission system
Technical field
The present invention relates to multi-media network, relate in particular to cache application method and device and document transmission system.
Background technology
In medium exhalation systems such as mail, multimedia message, fax and voice, need multimedia messagess such as a large amount of texts, voice, image and video, therefore the file-sharing interface between the outer paging system of third party system and medium adopts file transfer protocol (FTP) (FTP, File Transfer Protocol) agreement usually.Wherein, file transfer protocol (FTP) is transmission control protocol (TCP, Transfer Control Protocol)/Internet protocol (IP, InternetProtocol) one of agreement in the protocol groups, it is the basis of internet (Internet) file transfer, is made up of a series of description documents.Can improve the sharing of file by File Transfer Protocol, and can use remote computer indirectly, simultaneously with data transparency, reliably be transferred to the user efficiently.In fact, the function of File Transfer Protocol is exactly to finish two document copyings between the computer, to local computer, is referred to as to download (download) file from the remote computer copied files.File is copied to from local computer on the remote computer, then is referred to as to upload (upload) file.
In multimedia exhalation system, particularly when mass-sending, often be faced with the reprocessing and the exhalation of specific media information file, thereby can cause same media information content between ftp server and medium outcall system, to transmit repeatedly, so not only cause network congestion easily, but also had a strong impact on the disposal ability of the outer paging system of multimedia.
Prior art also provides a kind of cache application method of file transfer, below in conjunction with Fig. 1 the prior art is described, the business application system that specifically is achieved in that ftp client provides simple caching function in document transmission process, at first local path is kept in the buffer area, when calling for the second time, client directly whether has the corresponding file caching record in the command keyword retrieval buffer area according to remote path then, if exist, directly obtain file object from local file system, otherwise download the file into this locality from ftp server, again the local path of described file object correspondence is registered in buffer area, so that follow-up calling service is handled.The prior art is buffered the back at the file cache record and just can not be cleared up automatically, thereby causes buffer area to overflow easily, and then even may cause whole transmission system collapse.In addition, because the existence of buffer memory causes the file object of local file system accumulation more and more, can not be cleared up automatically and these file objects are in a single day expired, and then may cause disk to overflow easily.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides cache application method and device and document transmission system, to be able to delete automatically the file cache record of buffer area.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of cache application method, and this method comprises:
With the hour of log-on and the overtime step-length addition of presetting of file cache record, the current time with addition result and file cache record compares again; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits cache manager in;
Judge according to comparative result whether the file cache record is overtime, if, judge whether the file cache record is locked, if the file cache record does not have locked then deletes described file cache record from buffer area, otherwise continue buffer memory this document caching record.
According to said method, the embodiment of the invention also provides a kind of buffer memory application apparatus, and this device comprises memory cell, is used for the file cache record is carried out buffer memory, and this device also comprises:
The timeout treatment unit, be used to obtain the hour of log-on of file cache record, and hour of log-on and the overtime step-length that presets carried out addition, and the current time of addition result with the file cache record compared, judge according to comparative result whether file cache writes down overtime again; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits cache manager in;
Watch-dog, be used to obtain locking or the release situation of file cache record, and the overtime record according to the transmission of timeout treatment unit triggers overtime event interface when the file cache record is in released state, and the file cache record that this interface will be overtime from memory cell is deleted.
In addition, the embodiment of the invention also provides a kind of document transmission system, this system comprises client, server, buffer memory application apparatus, business application system and local file unit, wherein, client is used for initiating the file download request according to remote path to server, and the file object that server sends is saved in the local file unit, the local path information with this document object correspondence sends to the buffer memory application apparatus again; Business application system is used for initiating file transfer requests to the buffer memory application apparatus, and obtains the local path of file object correspondence from the buffer memory application apparatus, and the buffer memory application apparatus comprises:
Memory cell is used to receive the local path information that client sends, and the corresponding relation of remote path and local path is registered as the file cache record, and provides local path information to business application system;
The timeout treatment unit, be used to obtain the hour of log-on of file cache record, and hour of log-on and the overtime step-length that presets carried out addition, and the current time of addition result with the file cache record compared, judge according to comparative result whether file cache writes down overtime again; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits cache manager in;
Watch-dog is used for triggering overtime event interface according to the overtime record that the timeout treatment unit sends, and the file cache record that this interface will be overtime from memory cell is deleted.
Above technical scheme as can be seen, the overtime step-length because the embodiment of the invention is at first delayed time the hour of log-on of file cache record backward, current time with the file cache record determines relatively whether this document caching record is overtime again, and it is overtime and do not have to delete described file cache record from buffer area when accessed at file cache record, can't discharge the file cache record that is buffered with prior art compares, the embodiment of the invention is after the file cache record is buffered, can delete overtime file cache record automatically, thus the phenomenon of having avoided buffer area to overflow easily.
Description of drawings
Fig. 1 is the prior art system schematic diagram;
Fig. 2 is a kind of system configuration schematic diagram of realizing the inventive method and device;
Fig. 3 is that the file object of the inventive method execution mode is downloaded flow chart;
Fig. 4 is the overtime deleted file caching record flow chart of the inventive method execution mode;
Fig. 5 is the schematic diagram of apparatus of the present invention execution mode;
Fig. 6 is the schematic diagram of system implementation mode of the present invention.
Embodiment
The embodiment of the invention provides cache application method and device and document transmission system, can understand the present invention better in order to make those skilled in the art, is described in detail below in conjunction with the technical scheme of accompanying drawing to the embodiment of the invention.
With reference to Fig. 2, Fig. 2 is a kind of system configuration schematic diagram of realizing the inventive method and device, and this system comprises cache manager, watch-dog, server, client, business application system, local file system and Telefile.
Client is used for initiating the file download request according to remote path to server, and the file object of server transmission is saved in local file system, and the local path information with this document object correspondence sends to cache manager again; Business application system is used for initiating file transfer requests to cache manager, and the local path that obtains the file object correspondence from cache manager.
Cache manager is used to receive the local path information that client sends, and the corresponding relation of remote path and local path registered as the file cache record, and provide local path information to business application system, and the hour of log-on of file cache record carried out addition with the overtime step-length that presets, and the current time of addition result and file cache record compared, judge according to comparative result whether file cache writes down overtime again.
Watch-dog triggers overtime event interface according to the overtime record that the timeout treatment unit sends again, and the file cache record that this interface will be overtime from cache manager is deleted.
The software of realizing the inventive method can be stored in the computer read/write memory medium, and this software comprises the steps: when carrying out
With the hour of log-on and the overtime step-length addition of presetting of file cache record, the current time with addition result and file cache record compares again;
Judge according to comparative result whether the file cache record is overtime, if delete described file cache record from buffer area, otherwise continue buffer memory this document caching record.
With reference to Fig. 3, Fig. 3 is that the file object of the inventive method execution mode is downloaded flow chart, and is existing in conjunction with Fig. 2 and Fig. 3 supporting paper object download flow process, specifically may further comprise the steps:
Step 301, business application system is initiated file transfer requests according to remote path to cache manager, wherein, the corresponding relation of remote path and local path all need be registered in cache manager, usually the corresponding relation with remote path and local path is called the file cache record, described corresponding relation is to realize by the right mode of key-value, wherein, " key " is meant the keyword that is used to search, " value " is meant and is used for being searched or data retrieved, " key " of present embodiment is exactly remote path information, " value " is exactly local path information, because remote path and local path are exactly to be kept in the cache manager as key and value respectively, just can retrieve local path this " value " in cache manager by remote path this " key " in the practical application.
After step 302, cache manager are received file transfer requests, whether there is the file cache record that mates with remote path in the key assignments search cache manager according to remote path, if having execution in step 308, otherwise execution in step 303.
Step 303, cache manager are initiated the file download request to client.
Step 304, client are initiated the file download request according to remote path to server, and wait for up to the remote server response, the processing procedure of server execute file host-host protocol, if file object is transferred to after this locality, just expression " is downloaded and is finished ".Wherein, the host-host protocol of client and server can be File Transfer Protocol, Transmission Control Protocol etc.
Step 305, server send to client with the file object that gets access to, and client is saved in local file system with file object.
Step 306, client send to cache manager with the local path information of file object correspondence.
Step 307, cache manager receive the local path information that client sends, again the corresponding relation of local path and remote path is registered as the file cache record, and the hour of log-on of preservation this document caching record, then according to the accessed situation refresh registration time of file cache record, if the file cache record is for the first time accessed, hour of log-on is exactly the time that the file cache record deposits cache manager in so; If the file cache record is repeatedly visited, hour of log-on is exactly the last accessed concluding time of file cache record so.If the file cache record just when accessed, can not carry out overtime deletion to this document caching record at this moment and handle, must after writing down accessed end, file cache just can carry out corresponding overtime deletion processing capacity.
Step 308, the described file cache record of cache manager is locked, cache manager can be preserved the accessed number of times of file cache record simultaneously, and carries out release when not visited by business application system at the file cache record.Usually adopt forward-backward counter to come the accessed number of times of storage file caching record, file cache writes down every accessed start-stop counter and just adds 1, and file cache writes down each accessed end counter and just subtracts 1.The file cache record can be visited by a plurality of business application systems, suppose that certain file cache record is simultaneously by 5 business application system visits, the initial value of counter is 0, to write down accessed number of times be 5 to the file cache of counter records so, if certain business application system access file caching record finishes, then to write down accessed number of times be 4 to the file cache of counter records, if the accessed number of times of file cache record is 0 then explanation this document caching record does not have accessed.
If accessed number of times is not accessed less than 1 explanation this document caching record, cache manager can carry out release to this document caching record, otherwise this document caching record is described just accessed, and cache manager can not carry out release to this document caching record.
File cache record is overtime never between lockup period, can prevent from may exist in actual applications business application system also in the process of handling file like this, and the file cache record is overtime and deleted special circumstances occur.
Step 309, the local path information that file cache record is corresponding return to business application system.
Step 310, business application system are obtained file object according to local path information from local file system.
With reference to Fig. 4, Fig. 4 is the overtime deleted file caching record flow chart of the inventive method execution mode, specifically comprises:
The timeout mode of file caching record in step 401, the watch-dog timing scan cache manager.
Step 402, the hour of log-on and the overtime step-length that presets of file cache record are carried out addition, again addition result and current time are compared, illustrate that this document caching record is overtime if the current time is later than the addition result time corresponding, otherwise that the supporting paper caching record does not have is overtime.Wherein, overtime step-length is exactly overtime monitoring step-length, defaults to 5 minutes, and the file cache record does not have accessed this document caching record that then illustrates overtime in promptly 5 minutes.The hour of log-on of supposing the file cache record is 12: 05, current time is 12: 12, overtime step-length is 5 minutes, hour of log-on is prolonged an overtime step-length backward, just hour of log-on is added overtime step-length, the time that time-delay obtains is 12: 10, and the current time of file cache record is 12: 12, the current time that this document caching record is described will be later than 12: 10, and so just can draw this document caching record is to be in timeout mode.
Step 403, judge according to comparative result whether file cache record overtime, if, execution in step 404, otherwise with the file cache recorded and stored at cache manager, process ends.
Step 404, judge whether file cache record locked, if, with the file cache recorded and stored at cache manager, process ends, otherwise execution in step 405.
Step 405, watch-dog trigger an overtime event interface according to the overtime record of receiving, this interface is cleared up overtime record corresponding file object from local file system, and from cache manager this document caching record is cleared up.
According to said method, the embodiment of the invention also provides a kind of buffer memory application apparatus, and as shown in Figure 5, this device comprises memory cell 501, counter 502, control lock unit 503, watch-dog 504 and timeout treatment unit 505.
Wherein, memory cell 501 is used for the corresponding relation of remote path and local path is registered as the file cache record.
Wherein, the file cache that counter 502 is used for meter store unit 501 writes down accessed number of times, and provides the All Files caching record accessed number of times to control lock unit 503.Usually adopt forward-backward counter to measure the accessed number of times of file cache record, file cache writes down every accessed start-stop counter and just adds 1, and file cache writes down each accessed end counter and just subtracts 1.Suppose that certain file cache record is simultaneously by 5 business application system visits, the initial value of counter 502 is 0, the accessed number of times of file of these hour counter 502 records is 5, if certain business application system visit finishes, then the accessed number of times of file of counter 502 records is 4, if the accessed number of times of file cache record is 0 then illustrates that this document caching record does not have accessed, control lock unit 503 can carry out release to the file cache record, otherwise this document caching record is described just accessed, control lock unit 503 can not carry out release to this document caching record.
Wherein, control lock unit 503 is used for memory cell 501 accessed file cache records are locked, and write down accessed number of times according to the file cache that counter 502 provides and carry out release or keep locking, and with the file cache record lock or the release situation sends to watch-dog 504.In addition, file cache record is overtime never between lockup period, can prevent from may exist in actual applications business application system also in the process of handling file like this, and the file cache record is overtime and deleted special circumstances occur.
Wherein, watch-dog 504 is used to receive the file cache record that control lock unit 503 sends and locks or the release situation, and the overtime record that sends according to timeout treatment unit 505 triggers overtime event interface, this interface is deleted overtime file cache record from memory cell 501, and removes described file cache record corresponding file object.
In addition, watch-dog 504 also can obtain locking or the release situation of file cache record from the control lock unit, and the overtime record that sends according to timeout treatment unit 505 when the file cache record is in released state triggers overtime event interface, this interface will not have locked and overtime file cache record to delete from memory cell 501, and remove described file cache record corresponding file object.
Wherein, timeout treatment unit 505 comprises:
Timer 506, be used to preserve the hour of log-on of file cache record, and according to the accessed situation refresh registration time of file cache record, wherein, the hour of log-on of file cache record can constantly refresh with accessed number of times, if the file cache record is for the first time accessed, hour of log-on is exactly the time that the file cache record deposits memory cell 501 in so; If the file cache record is repeatedly visited, hour of log-on is exactly the last accessed concluding time of file cache record so.If the file cache record just when accessed, can not carry out overtime deletion to this document caching record at this moment and handle, must after writing down accessed end, file cache just can carry out corresponding overtime deletion processing capacity.
Delay unit 507 is used to obtain the hour of log-on of file cache record, and presets overtime step-length, again hour of log-on and overtime step-length is carried out addition.
Comparing unit 508 is used for the current time of addition result and file cache record is compared, and judges according to comparative result whether the file cache record is overtime again, and sends overtime record to watch-dog 504.
In addition, the embodiment of the invention also provides a kind of document transmission system, and as shown in Figure 6, this system comprises server 601, telefile unit 602, local file unit 603, client 604, business application system 605 and buffer memory application apparatus 606.
Wherein, server 601 is used to receive the file download request of client 604, and file object is sent to client 604.
Wherein, telefile unit 602 is used for the file object of storage server 601.
Wherein, local file unit 603 is used to store the file object of client 604.
Wherein, client 604 is used for initiating this document download request according to remote path to server 601, and the file object of reception server 601 transmissions, and the file object that receives is saved in local file unit 603, the local path information with this document object correspondence sends to buffer memory application apparatus 606 again.
Wherein, business application system 605 is used for initiating file transfer requests according to remote path to buffer memory application apparatus 606, and obtains the local path information of file object correspondence from buffer memory application apparatus 606.
Wherein, buffer memory application apparatus 606 comprises:
Memory cell 607 is used to receive the local path information that client 604 sends, and the corresponding relation of remote path and local path is registered as the file cache record, and provides local path information to business application system 605.
Counter 608, the file cache that is used for meter store unit 607 writes down accessed number of times, and provides the file cache record accessed number of times to control lock unit 609.Usually adopt forward-backward counter to measure the accessed number of times of file cache record, file cache writes down every accessed start-stop counter and just adds 1, the file cache record whenever is released start-stop counter and just subtracts 1, if accessed number of times is not accessed less than 1 explanation this document caching record, control lock unit 609 can carry out release to the file cache record, otherwise this document caching record is described just accessed, control lock unit 609 can not carry out release to this document caching record.
Control lock unit 609, be used for memory cell 607 accessed file cache records are locked, and write down accessed number of times according to the file cache that counter 608 provides and carry out release or keep locking, and with file cache record lock or the release situation sends to watch-dog 610, wherein, the file cache record is overtime never between lockup period, can prevent from may to exist in actual applications business application system also in the process of handling file like this, the file cache record is overtime and deleted special circumstances occur.
Watch-dog 610, be used for triggering overtime event interface according to the overtime record that timeout treatment unit 611 sends, this interface is deleted overtime file cache record from memory cell 607, and the described file cache of 603 removings writes down the corresponding file object from the local file unit.
In addition, watch-dog 610 also can obtain locking or the release situation of file cache record from the control lock unit, and the overtime record that sends according to timeout treatment unit 611 when the file cache record is in released state triggers overtime event interface, this interface will not have locked and overtime file cache record to delete from memory cell 607, and the described file cache of 603 removings writes down the corresponding file object from the local file unit.
Timeout treatment unit 611 comprises:
Timer 612, be used to preserve the hour of log-on of file cache record, and according to visit situation refresh registration time of file cache record, wherein, the hour of log-on of file cache record can constantly refresh with accessed number of times, if the file cache record is for the first time accessed, hour of log-on is exactly the time that the file cache record deposits memory cell 607 in so; If the file cache record is repeatedly visited, hour of log-on is exactly the last accessed time of file cache record so.
Delay unit 613 is used to obtain the hour of log-on of file cache record, and presets overtime step-length, again hour of log-on and overtime step-length is carried out addition.
Comparing unit 614 is used for the current time of addition result and file cache record is compared, and judges according to comparative result whether the file cache record is overtime again, and sends overtime record to watch-dog 610.
From the above, the embodiment of the invention possess simultaneously to file cache record store, overtime refreshing and lock function, improved the caching function of file cache record like this.Simultaneously, the embodiment of the invention is after the file cache record is buffered, can delete overtime file cache record automatically, simultaneously also can be from the local file unit 603 cleaning this document caching record corresponding file objects automatically, thereby avoid memory cell 607 and local file unit 603 to overflow easily.
In addition, the embodiment of the invention locks to accessed file cache record, and can guarantee like this that file cache is recorded in can be not deleted in the application process, thereby guarantees the consistency used.At last, the invention process regular meeting is the hour of log-on of refreshing file caching record according to the accessed number of times of file cache record and automatically, if the file cache record is the hour of log-on that file cache writes down with the concluding time of last visit just by visit repeatedly.
More than cache application method that the embodiment of the invention provided and device and document transmission system are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a cache application method is characterized in that, this method comprises:
With the hour of log-on and the overtime step-length addition of presetting of file cache record, the current time with addition result and file cache record compares again; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits cache manager in; Described file cache record is the corresponding relation of remote path and local path;
Judge according to comparative result whether the file cache record is overtime, if, judge whether the file cache record is locked,, otherwise continue buffer memory this document caching record if the file cache record does not have locked then deletes described file cache record from cache manager.
2. cache application method as claimed in claim 1 is characterized in that, described cache manager is during with the file cache record of remote path coupling, is further comprising before the hour of log-on of file cache record and the overtime step-length addition of presetting:
Obtain local path information according to remote path, described cache manager is registered the corresponding relation of local path and remote path as the file cache record, and the hour of log-on of cache file caching record.
3. cache application method as claimed in claim 2 is characterized in that, further comprises after file cache record is registered: the file cache record is locked, and write down at file cache and not have to carry out when accessed release;
Delete described file cache record from cache manager before, further comprise: judge whether the file cache record is locked, if the file cache record does not have locked then carries out the step of deleting described file cache record from cache manager, otherwise continues the described file cache record of buffer memory.
4. cache application method as claimed in claim 1, it is characterized in that, when there is the file cache record that mates with remote path in cache manager, further comprising before the hour of log-on of file cache record and the overtime step-length addition of presetting: the file cache record is locked, and do not have to carry out when accessed release at the file cache record.
5. as claim 1,2,3 or 4 described cache application methods, it is characterized in that when the file cache record was repeatedly visited, the hour of log-on of file cache record was the last accessed concluding time of file cache record.
6. cache application method as claimed in claim 1 is characterized in that, this method further comprises:
Deleted file caching record corresponding file object is cleared up.
7. buffer memory application apparatus, this device comprises memory cell, is used for the file cache record is carried out buffer memory, described file cache record is the corresponding relation of remote path and local path, it is characterized in that this device also comprises:
Timer is used to preserve the hour of log-on that file cache writes down, and according to the accessed situation refresh registration time of file cache record; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits memory cell in;
Delay unit is used to obtain the hour of log-on of file cache record, and presets overtime step-length, again hour of log-on and overtime step-length is carried out addition;
Comparing unit is used for the current time of addition result and file cache record is compared, and judges according to comparative result whether the file cache record is overtime again, and sends overtime record to watch-dog;
Watch-dog, be used to obtain locking or the release situation of file cache record, and the overtime record according to the transmission of timeout treatment unit triggers overtime event interface when the file cache record is in released state, and the file cache record that this interface will be overtime from memory cell is deleted.
8. buffer memory application apparatus as claimed in claim 7 is characterized in that, watch-dog also is further used for clearing up deleted file caching record corresponding file object.
9. as claim 7 or 8 described buffer memory application apparatus, it is characterized in that this device further comprises:
Counter, the file cache that is used for the meter store unit writes down accessed number of times;
The control lock unit, be used for the accessed file cache record of memory cell is locked, and write down accessed number of times according to the file cache that counter provides and carry out release or keep locking, and with the file cache record lock or the release situation sends to watch-dog;
Described watch-dog is further used for obtaining from described control lock unit locking or the release situation of file cache record.
10. document transmission system, this system comprises client, server, buffer memory application apparatus, business application system and local file unit, wherein, client is used for initiating the file download request according to remote path to server, and the file object that server sends is saved in the local file unit, the local path information with this document object correspondence sends to the buffer memory application apparatus again; Business application system is used for initiating file transfer requests to the buffer memory application apparatus, and obtains the local path of file object correspondence from the buffer memory application apparatus, it is characterized in that the buffer memory application apparatus comprises:
Memory cell is used to receive the local path information that client sends, and the corresponding relation of remote path and local path is registered as the file cache record, and provides local path information to business application system;
Timer is used to preserve the hour of log-on that file cache writes down, and according to the accessed situation refresh registration time of file cache record; Described hour of log-on is time or the last accessed concluding time of file cache record that the file cache record deposits memory cell in;
Delay unit is used to obtain the hour of log-on of file cache record, and presets overtime step-length, again hour of log-on and overtime step-length is carried out addition;
Comparing unit is used for the current time of addition result and file cache record is compared, and judges according to comparative result whether the file cache record is overtime again, and sends overtime record to watch-dog;
Watch-dog is used for triggering overtime event interface according to the overtime record that the timeout treatment unit sends, and the file cache record that this interface will be overtime from memory cell is deleted.
11. document transmission system as claimed in claim 10 is characterized in that, watch-dog also is further used for clearing up from the local file unit with deleted file caching record corresponding file object.
12., it is characterized in that the buffer memory application apparatus also comprises as claim 10 or 11 described document transmission systems:
Counter, the file cache that is used for the meter store unit writes down accessed number of times;
The control lock unit, be used for the accessed file cache record of memory cell is locked, and write down accessed number of times according to the file cache that counter provides and carry out release or keep locking, and with the file cache record lock or the release situation sends to watch-dog;
Watch-dog is further used for obtaining from the control lock unit locking or the release situation of file cache record, and the overtime record that sends according to the timeout treatment unit when the file cache record is in released state triggers overtime event interface.
CN2006101452675A 2006-11-24 2006-11-24 Cache application method and device, and file transfer system Expired - Fee Related CN1997015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101452675A CN1997015B (en) 2006-11-24 2006-11-24 Cache application method and device, and file transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101452675A CN1997015B (en) 2006-11-24 2006-11-24 Cache application method and device, and file transfer system

Publications (2)

Publication Number Publication Date
CN1997015A CN1997015A (en) 2007-07-11
CN1997015B true CN1997015B (en) 2011-04-20

Family

ID=38251942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101452675A Expired - Fee Related CN1997015B (en) 2006-11-24 2006-11-24 Cache application method and device, and file transfer system

Country Status (1)

Country Link
CN (1) CN1997015B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521151A (en) * 2011-11-28 2012-06-27 华为技术有限公司 Data caching method and device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139224B (en) * 2011-11-22 2016-01-27 腾讯科技(深圳)有限公司 The access method of a kind of NFS and NFS
CN103810189B (en) * 2012-11-08 2018-06-05 腾讯科技(深圳)有限公司 A kind of hot spot message treatment method and system
RU2015156493A (en) * 2013-05-31 2017-07-05 Конинклейке Филипс Н.В. SYSTEM AND METHOD FOR AUTOMATIC DOWNLOAD, DOWNLOAD AND UPDATE OF DATA, SUCH AS DATA OF STUDYING A PATIENT DURING SLEEP
CN103353892A (en) * 2013-07-05 2013-10-16 北京东方网信科技股份有限公司 Method and system for data cleaning suitable for mass storage
CN104424125A (en) * 2013-09-10 2015-03-18 腾讯科技(深圳)有限公司 Clearing method for mobile terminal cache, device and mobile terminal
CN103744892B (en) * 2013-12-23 2017-08-15 浙江宇视科技有限公司 A kind of method and apparatus for locking of recording a video
CN104036011B (en) * 2014-06-24 2020-06-12 北京奇虎科技有限公司 Webpage element display method and browser device
CN105447037A (en) * 2014-08-29 2016-03-30 优视科技有限公司 Caching clearing method and device
CN106569733A (en) * 2015-10-12 2017-04-19 北京国双科技有限公司 Processing method and processing device for buffered data
CN106792629B (en) * 2015-11-25 2021-03-19 深圳市六二九科技有限公司 Smart card data system and use method
CN108287878A (en) * 2018-01-02 2018-07-17 沈阳东软医疗系统有限公司 A kind of dynamic buffering data failure dispatching method, device and caching system
CN110941449A (en) * 2019-11-15 2020-03-31 新华三半导体技术有限公司 Cache block processing method and device and processor chip

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620059A (en) * 2003-11-21 2005-05-25 微软公司 Method to provide synchronisation notifications to client devices

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1620059A (en) * 2003-11-21 2005-05-25 微软公司 Method to provide synchronisation notifications to client devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨东勇等.远程文件下载系统的设计与实现.《计算机工程》.2001,(第06期), *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521151A (en) * 2011-11-28 2012-06-27 华为技术有限公司 Data caching method and device
US9208087B2 (en) 2011-11-28 2015-12-08 Huawei Technologies Co., Ltd. On-chip data caching method and apparatus

Also Published As

Publication number Publication date
CN1997015A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CN1997015B (en) Cache application method and device, and file transfer system
US9882975B2 (en) Method and apparatus for buffering and obtaining resources, resource buffering system
CN101510219B (en) File data accessing method, apparatus and system
US7577960B2 (en) System and method for managing cached objects using notifications bonds
CN102117309B (en) Data caching system and data query method
US8650164B2 (en) Efficient storage and retrieval for large number of data objects
US7243136B2 (en) Approach for managing and providing content to users
US20030187868A1 (en) Data acquisition system
US20020032671A1 (en) File system and file caching method in the same
US20080271130A1 (en) Minimizing client-side inconsistencies in a distributed virtual file system
US10579595B2 (en) Method and device for calling a distributed file system
US20090313260A1 (en) Methods and systems for assisting information processing by using storage system
US20160087926A1 (en) Data storage method and mail relay method of storage system in mail system
US20070214143A1 (en) NFS server, NFS server control program and NFS server control method
WO2020098654A1 (en) Data storage method and device based on cloud storage, and storage medium
CN110737388A (en) Data pre-reading method, client, server and file system
CN108540510B (en) Cloud host creation method and device and cloud service system
CN113687781A (en) Method, device, equipment and medium for pulling up thermal data
US8805942B2 (en) Storing and partitioning email messaging data
JPH07239808A (en) Distributed data managing system
CN115167778A (en) Storage management method, system and server
CN111078643B (en) Method and device for deleting files in batch and electronic equipment
KR20010012913A (en) Network Object Cache Engine
CN104821907A (en) Email processing method
CN104735152A (en) Mail reading method based on network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110420

Termination date: 20121124