Inheritance diagram for IMutableCache:
Public Member Functions | |
IPayload | put (char[] key, IPayload entry) |
IPayload | extract (char[] key, ulong timeLimit=ulong.max) |
ICache | bind (ICacheLoader loader) |
IPayload | get (char[] key) |
Definition at line 65 of file ICache.d.
|
Place an entry into the cache and associate it with the provided key. Note that there can be only one entry for any particular key. If two keys entries are added with the same key, the second effectively overwrites the first. Returns what it was given Reimplemented in PlainCache, QueuedCache, and VirtualCache. Referenced by NetworkCombo::get(), and NetworkCombo::put(). |
|
Remove (and return) the cache entry associated with the provided key. The entry will not be removed if it's time attribute is newer than the (optional) specified 'timelimit'. Returns null if there is no such entry. Reimplemented in PlainCache, QueuedCache, and VirtualCache. Referenced by CacheInvalidatee::notify(). |
|
This is a factory for producing an ICache instance upon the cache content. The provided loader will populate the cache whenever a stale or missing entry is seen Reimplemented in PlainCache. Referenced by testCacheLoader(). |
|
Get the cache entry identified by the given key Reimplemented in PlainCache, QueuedCache, VirtualCache, and NetworkCache::LocalLoader. Referenced by NetworkCombo::get(), testCacheLoader(), and testRemoteCacheLoader(). |