Annotation of libwww/Library/src/WWWCache.html, revision 2.8

2.1       frystyk     1: <HTML>
                      2: <HEAD>
2.7       frystyk     3:   <TITLE>W3C Sample Code Library libwww Persistent Cache Manager</TITLE>
2.1       frystyk     4: </HEAD>
                      5: <BODY>
2.5       frystyk     6: <H1>
2.7       frystyk     7:   Declaration of W3C Sample Code Persistent Cache Manager
2.5       frystyk     8: </H1>
2.1       frystyk     9: <PRE>
                     10: /*
                     11: **     (c) COPYRIGHT MIT 1995.
                     12: **     Please first read the full copyright statement in the file COPYRIGH.
                     13: */
                     14: </PRE>
2.5       frystyk    15: <P>
                     16: Caching is a required part of any efficient Internet access applications
                     17: as it saves bandwidth and improves access performance significantly in almost
                     18: all types of accesses. The Library supports two different types of cache:
                     19: The memory cache and the file cache. The two types differ in several ways
                     20: which reflects their two main purposes: The memory cache is for short term
                     21: storage of graphic objects whereas the file cache is for intermediate term
                     22: storage of data objects. Often it is desirable to have both a memory and
                     23: a file version of a cached document, so the two types do not exclude each
                     24: other.
                     25: <P>
                     26: The cache contains details of persietent files which contain the contents
                     27: of remote documents. The existing cache manager is somewhat naive - especially
                     28: in its garbage collection but it is just an example of how it can be done.
                     29: More advanced implementations are welcome!
2.1       frystyk    30: <PRE>
                     31: #ifndef WWWCACHE_H
                     32: #define WWWCACHE_H
                     33: </PRE>
                     34: <PRE>
                     35: #ifdef __cplusplus
                     36: extern "C" { 
                     37: #endif
                     38: </PRE>
2.5       frystyk    39: <H3>
                     40:   System dependencies
                     41: </H3>
                     42: <P>
2.8     ! frystyk    43: The <A HREF="wwwsys.html">wwwsys.h</A> file includes system-specific include
2.5       frystyk    44: files and flags for I/O to network and disk. The only reason for this file
                     45: is that the Internet world is more complicated than Posix and ANSI.
2.1       frystyk    46: <PRE>
2.8     ! frystyk    47: #include "<A HREF="wwwsys.html">wwwsys.h</A>"
2.4       frystyk    48: </PRE>
2.5       frystyk    49: <H3>
                     50:   Caching Manager
                     51: </H3>
                     52: <P>
2.6       frystyk    53: The cache interface defines a persistent cache manager based on accessing
                     54: files.
2.5       frystyk    55: <PRE>#include "<A HREF="HTCache.html">HTCache.h</A>"
2.1       frystyk    56: </PRE>
                     57: <PRE>
                     58: #ifdef __cplusplus
                     59: } /* end extern C definitions */
                     60: #endif
                     61: 
                     62: #endif
                     63: </PRE>
2.5       frystyk    64: <P>
                     65:   <HR>
2.3       frystyk    66: <ADDRESS>
2.8     ! frystyk    67:   @(#) $Id: WWWCache.html,v 2.7 1997/02/16 18:43:20 frystyk Exp $
2.3       frystyk    68: </ADDRESS>
2.5       frystyk    69: </BODY></HTML>

Webmaster