Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CachingPool Class Reference

A CachingPool is an intermediate Pool providing caching for another (presumably slow) Pool. More...

#include <CachingPool.h>

Inheritance diagram for CachingPool::

Pool TripleSource TripleSink Collaboration diagram for CachingPool:

Collaboration graph
[legend]
List of all members.

Public Methods


Detailed Description

A CachingPool is an intermediate Pool providing caching for another (presumably slow) Pool.

It is constructed with a reference to the cached Pool and optionally with a reference to another Pool to use as the cache. If no cache is provided, an InMemoryPool is used.

All modifications must be made through this interface unless the cached store is a WatchablePool. This constraint cannot be machine-enforced, however.

Author:
\URL[Sandro Hawke]{http://www.w3.org/People/Sandro} (sandro@w3.org)
Version:
Id:
CachingPool.h,v 1.6 2001/10/03 02:12:22 sandro Exp

Definition at line 26 of file CachingPool.h.


Constructor & Destructor Documentation

CachingPool::CachingPool Pool   cached,
Pool   cache = 0
 

Construct a caching triple store (when you're caching something which is not a WatchablePool).

m cached The Pool to be cached, with its data
presented by this CachingPool. Any changes to "cached" after this point should be made through this interface, otherwise behavior is undefined. The other constructor is much preferred for this reason.
m cache A Pool which will store the information
about what is known to be in cached, not in cached, and how recently the information was requested. If this parameter is omitted, a suitable default will be created.

CachingPool::CachingPool WatchablePool   cached,
Pool   cache = 0
 

Construct a caching triple store.

m cached The Pool to be cached, with its data
presented by this CachingPool. Cached may be changed directory or via this interface.
m cache A Pool which will store the information
about what is known to be in cached, not in cached, and how recently the information was requested. If this parameter is omitted, a suitable default will be created.


Home to blindfold. This page generated via doxygen 1.2.11.1 Wed Oct 10 16:40:35 2001.