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