APIObject cache

Object cache

A virtual store that uses a fast (local) store to cache objects of a slow (remote) store. The local store is often a folder store.

Instance creation

ObjectCache storeWithCache = new ObjectCache(backendStore, cacheStore);
my $storeWithCache = CDS::ObjectCache->new($backendStore, $cacheStore);

Instantiates an object cache.

Store behavior

Any object seen by a get or put request is cached on the local store. Get requests are served from the local store, if possible, and otherwise directed to the remote store.

Put, book, list and modify requests are passed to the remote store.

The object cache is currently only implemented in Java and Perl.