Inheritance diagram for ICacheLoader:
Public Member Functions | |
bool | test (IPayload p) |
IPayload | load (char[] key, long time) |
Definition at line 114 of file ICache.d.
|
Test the cache entry to see if it is still valid. A true return value indicates the entry is valid, whereas false flags the entry as stale. The latter case will cause the load() method to be invoked. Reimplemented in NetworkCache::RemoteLoader. Referenced by PlainCache::bind(), testCacheLoader(), and testRemoteCacheLoader(). |
|
Load a cache entry from wherever the content is persisted. The 'time' argument represents that belonging to a stale entry, which can be used to optimize the loader operation (no need to perform a full load where there's already a newer version in an L2 cache). This 'time' value will be long.min where was no such stale entry. Reimplemented in NetworkCache::RemoteLoader. Referenced by PlainCache::bind(), CacheServer::LoaderThread::load(), testCacheLoader(), and testRemoteCacheLoader(). |