File:  [Public] / libwww / Library / src / WWWCache.html
Revision 2.7: download - view: text, annotated - select for diffs
Sun Feb 16 18:43:20 1997 UTC (27 years, 3 months ago) by frystyk
Branches: MAIN
CVS tags: Release-5-1l, Release-5-1k, Release-5-1j, Release-5-1g, Release-5-1e, Release-5-1d, Release-5-1b, Release-5-1a, Release-5-1, HEAD
Changed name of sample coed library

<HTML>
<HEAD>
  <TITLE>W3C Sample Code Library libwww Persistent Cache Manager</TITLE>
</HEAD>
<BODY>
<H1>
  Declaration of W3C Sample Code Persistent Cache Manager
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
Caching is a required part of any efficient Internet access applications
as it saves bandwidth and improves access performance significantly in almost
all types of accesses. The Library supports two different types of cache:
The memory cache and the file cache. The two types differ in several ways
which reflects their two main purposes: The memory cache is for short term
storage of graphic objects whereas the file cache is for intermediate term
storage of data objects. Often it is desirable to have both a memory and
a file version of a cached document, so the two types do not exclude each
other.
<P>
The cache contains details of persietent files which contain the contents
of remote documents. The existing cache manager is somewhat naive - especially
in its garbage collection but it is just an example of how it can be done.
More advanced implementations are welcome!
<PRE>
#ifndef WWWCACHE_H
#define WWWCACHE_H
</PRE>
<PRE>
#ifdef __cplusplus
extern "C" { 
#endif
</PRE>
<H3>
  System dependencies
</H3>
<P>
The <A HREF="sysdep.html">sysdep.h</A> file includes system-specific include
files and flags for I/O to network and disk. The only reason for this file
is that the Internet world is more complicated than Posix and ANSI.
<PRE>
#include "<A HREF="sysdep.html">sysdep.h</A>"
</PRE>
<H3>
  Caching Manager
</H3>
<P>
The cache interface defines a persistent cache manager based on accessing
files.
<PRE>#include "<A HREF="HTCache.html">HTCache.h</A>"
</PRE>
<PRE>
#ifdef __cplusplus
} /* end extern C definitions */
#endif

#endif
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: WWWCache.html,v 2.7 1997/02/16 18:43:20 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster