CN102394864A - Information caching method - Google Patents

Information caching method Download PDF

Info

Publication number
CN102394864A
CN102394864A CN2011102694742A CN201110269474A CN102394864A CN 102394864 A CN102394864 A CN 102394864A CN 2011102694742 A CN2011102694742 A CN 2011102694742A CN 201110269474 A CN201110269474 A CN 201110269474A CN 102394864 A CN102394864 A CN 102394864A
Authority
CN
China
Prior art keywords
information
caching
source data
data
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
CN2011102694742A
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.)
Public Network Software Technology (dalian) Co Ltd
Original Assignee
Public Network Software Technology (dalian) 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 Public Network Software Technology (dalian) Co Ltd filed Critical Public Network Software Technology (dalian) Co Ltd
Priority to CN2011102694742A priority Critical patent/CN102394864A/en
Publication of CN102394864A publication Critical patent/CN102394864A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The invention provides an information caching method. The method comprises the following steps of: establishing a caching information table; recording label information of source data and finally-updated time information into the caching information table; receiving a submitted access request to generate request information; judging whether a local cache has caching information of the source data according to the label information; if not, extracting the source data, the label information of the source data and the finally-updated time information recorded in the caching information table, and generating caching data of the source data; otherwise, comparing finally-updated time information of the caching data with the finally-updated time information corresponding to the label information in the caching information table; and if the finally-updated time information of the caching data and the finally-updated time information corresponding to the label information in the caching information table are the same, reading the caching data. With the method provided by the invention, the caching efficiency of a website can be efficiently improved and the consistency of the caching data in each client can be guaranteed.

Description

A kind of method for caching information
Technical field
The present invention relates to a kind of method for caching information, more particularly, relate to a kind of site information caching method.
Background technology
Along with the development of the progress of science, technology, INTERNET has become people's indispensable part of life of working.Also just along with the progress of science, the development of technology, people's work efficient is increasingly high, and is also increasingly high for the requirement of INTERNET.As everyone knows, the process of access websites is to accomplish through the HTTP agreement that is based upon on TCP/IP agreement.Send a HTTP request beginning from client, the stand-by period that the user experienced depends mainly on the response time of DNS and website.The website domain name at first must be resolved to the IP address by dns server, and the time-delay of HTTP is then by determining several two-way time between client and server.Several aspects are depended in the time-delay of access websites: the first, and the time-delay of Website server: the time-delay that Website server causes accounts for main ratio in two-way time.When certain server receives that a plurality of concurrent HTTP ask, will produce queuing delay.The second, the time-delay that router, gateway, acting server and fire compartment wall cause.Usually on the path between the client and server, can there be a plurality of network equipments, like router, gateway, agency and fire compartment wall etc.They all will do the operation of storage/forwarding to the IP bag of process, so can introduce queuing delay and handle time-delay.The 3rd, the data transmission bauds on the different communication link.In wide area network, the data transmission bauds from a network equipment to another LA Management Room is the decision key factor of two-way time.Using more caching technology at present is the dynamic buffering technology.The defective of this existing caching technology is, because that it just generates on the backstage is data cached, thereby can not obtain the generation or the update mode of source data immediately when corresponding contents being sent request, thereby can not guarantee data cached instantaneity; And, adopt this technology, no matter whether source data is upgraded, then initiate to upgrade as long as meet the arrival Preset Time, thereby waste serious resource, influence buffer update efficient.
Summary of the invention
The technical problem that the present invention will solve is, the defective that web page access can not real-time high-efficiency be provided to prior art exists provides a kind of method for caching information.
The present invention provides a kind of method for caching information, and this method comprises the steps:
S1, set up cache information table;
S2, with the identification information of source data and the typing of final updating temporal information to cache information table;
The access request that S3, reception are submitted to generates solicited message;
S4, according to the cache information that whether has said source data in the said identification information judgment local cache, execution in step S4 when not existing, execution in step S5 when existing;
The final updating temporal information that writes down in S5, the identification information that extracts said source data, said source data and the said cache information table generates the data cached of said source data in local cache;
S6, the final updating temporal information of respective identification information in said data cached final updating temporal information and the said cache information table is compared, when the two is consistent, read said data cached.
In method for caching information of the present invention, said source data is stored in the different servers with cache information table.
In method for caching information of the present invention, comprise a plurality of cache information table.
The method for caching information of embodiment of the present invention; Has following beneficial effect: therefore; Those skilled in the art press for develops a kind of under the prerequisite that guarantees the buffer memory instantaneity, effectively improves the website buffer efficiency, and can guarantee the data cached consistency of each client computer.
Embodiment
The present invention provides a kind of method for caching information, and this method is used for a kind of information cache device.Said information cache device comprises: record cell; The identification information and the final updating temporal information that are used for writing down source data are to cache information table; Wherein, for newly-generated source data, the final updating temporal information that is write down is the temporal information that said source data generates; For the renewal that said source data is carried out, the final updating temporal information that is write down is the last temporal information of upgrading of this source data; Interface unit is used for the access request that subscribing client is submitted to, generates solicited message, and described request information comprises the identification information of institute's access originator data; Judging unit is used for whether having the data cached of said source data according to said identification information judgment local cache, if do not exist, then triggers buffer memory and creates the unit; If exist, then trigger the contrast unit; Buffer memory is created the unit, is used for extracting the identification information of said source data, said source data and the final updating temporal information that said cache information table writes down, and in local cache, generates the data cached of said source data; The contrast unit; Be used for the said data cached final updating temporal information and the final updating temporal information of said cache information table respective identification information are compared; And when unanimity, trigger reading unit; When inconsistent, call buffer memory establishment unit and in local cache, regenerate the data cached of said source data; Reading unit is used to read said data cached.
Method for caching information provided by the present invention comprises the steps:
S1, set up cache information table;
S2, with the identification information of source data and the typing of final updating temporal information to cache information table;
The access request that S3, reception are submitted to generates solicited message;
S4, according to the cache information that whether has said source data in the said identification information judgment local cache, execution in step S4 when not existing, execution in step S5 when existing;
The final updating temporal information that writes down in S5, the identification information that extracts said source data, said source data and the said cache information table generates the data cached of said source data in local cache;
S6, the final updating temporal information of respective identification information in said data cached final updating temporal information and the said cache information table is compared, when the two is consistent, read said data cached.
In method for caching information of the present invention, said source data is stored in the different servers with cache information table.
In method for caching information of the present invention, comprise a plurality of cache information table.
The method for caching information of embodiment of the present invention; Has following beneficial effect: therefore; Those skilled in the art press for develops a kind of under the prerequisite that guarantees the buffer memory instantaneity, effectively improves the website buffer efficiency, and can guarantee the data cached consistency of each client computer.
The present invention describes through some embodiment, and those skilled in the art know, under the situation that does not break away from the spirit and scope of the present invention, can carry out various changes or equivalence replacement to these characteristics and embodiment.In addition, under instruction of the present invention, can make amendment to these characteristics and embodiment can not break away from the spirit and scope of the present invention to adapt to concrete situation and material.Therefore, the present invention does not receive the restriction of specific embodiment disclosed herein, and all interior embodiment of claim scope that fall into the application belong to protection scope of the present invention.

Claims (3)

1. method for caching information is characterized in that: comprises the steps,
S1, set up cache information table;
S2, with the identification information of source data and the typing of final updating temporal information to cache information table;
The access request that S3, reception are submitted to generates solicited message;
S4, according to the cache information that whether has said source data in the said identification information judgment local cache, execution in step S4 when not existing, execution in step S5 when existing;
The final updating temporal information that writes down in S5, the identification information that extracts said source data, said source data and the said cache information table generates the data cached of said source data in local cache;
S6, the final updating temporal information of respective identification information in said data cached final updating temporal information and the said cache information table is compared, when the two is consistent, read said data cached.
2. method for caching information according to claim 1 is characterized in that: said source data is stored in the different servers with cache information table.
3. method for caching information according to claim 1 is characterized in that: comprise a plurality of cache information table.
CN2011102694742A 2011-09-13 2011-09-13 Information caching method Pending CN102394864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102694742A CN102394864A (en) 2011-09-13 2011-09-13 Information caching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102694742A CN102394864A (en) 2011-09-13 2011-09-13 Information caching method

Publications (1)

Publication Number Publication Date
CN102394864A true CN102394864A (en) 2012-03-28

Family

ID=45862073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102694742A Pending CN102394864A (en) 2011-09-13 2011-09-13 Information caching method

Country Status (1)

Country Link
CN (1) CN102394864A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994058A (en) * 2015-05-15 2015-10-21 北京京东尚科信息技术有限公司 Method, device, and system for achieving accelerated access for a router
CN108038121A (en) * 2017-11-03 2018-05-15 福建网龙计算机网络信息技术有限公司 A kind of caching method and terminal
CN113542109A (en) * 2021-07-19 2021-10-22 江西省能源大数据有限公司 Data acquisition algorithm of 5G intelligent energy gateway

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994058A (en) * 2015-05-15 2015-10-21 北京京东尚科信息技术有限公司 Method, device, and system for achieving accelerated access for a router
CN108038121A (en) * 2017-11-03 2018-05-15 福建网龙计算机网络信息技术有限公司 A kind of caching method and terminal
CN108038121B (en) * 2017-11-03 2021-06-08 福建网龙计算机网络信息技术有限公司 Caching method and terminal
CN113542109A (en) * 2021-07-19 2021-10-22 江西省能源大数据有限公司 Data acquisition algorithm of 5G intelligent energy gateway
CN113542109B (en) * 2021-07-19 2022-06-07 江西省能源大数据有限公司 Data acquisition method of 5G intelligent energy gateway

Similar Documents

Publication Publication Date Title
CN100591078C (en) A website buffering method and device
CN105100260B (en) A kind of method and device to be accessed by proxy server
CN102165741B (en) Method for intercepting and searching host in IPV6 network
CN103188574B (en) method and system for transmitting network video
CN102651861B (en) Download method for mobile terminal, mobile terminal and proxy download server
CN105743670B (en) Access control method, system and access point
WO2016186769A1 (en) Customized record handling in a content delivery network
TW200718090A (en) System and method for remote management
CN106470251A (en) Domain name analytic method and virtual DNS authority server
CN106464745A (en) Dns server, client and data synchronization method
CN103581765A (en) Method and equipment for message transmission
CN102035738A (en) Method and device for acquiring routing information
CN102394864A (en) Information caching method
CN102710643A (en) Portal server and user keeping alive method thereof
US9973587B2 (en) Web page pushing method and apparatus, and terminal
US10680930B2 (en) Method and apparatus for communication in virtual network
CN102164150B (en) Method, device, server and system for delivering strategies
CN103929506A (en) Method and device for distributing IP address for IP hard disk
CN102137016A (en) Network address translation table entry hot backup method and device
CN108124022B (en) Network address translation management method and device
CN104969521A (en) Data sending and processing method and router
CN110278558B (en) Message interaction method and WLAN system
CN101388850B (en) Multicast packet forwarding method and device
CN109413220A (en) A method of it is accessed in a manner of alias in DDOS cloud guard system and DNS is avoided to propagate
CN104601456B (en) Gateway replacement method, gateway and server

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

Application publication date: 20120328