|
| CacheDistributed (DefaultCacheOptions options, IDistributedCache l2Cache, IEnvironmentSettings env, ISignalR signalR) |
|
virtual bool | Get< T > (string key, out T item) |
| Retrieves an item from the Cache More...
|
|
virtual void | Set< T > (string key, T item) |
| Sets an item into cache More...
|
|
virtual T | Get< T > (string key, Func< T > method) |
| Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use More...
|
|
virtual Task< T > | GetAsync< T > (string key, Func< Task< T >> method) |
| Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use More...
|
|
virtual void | Remove (string key) |
| Removes the given object from distributed cache More...
|
|
virtual Task< Exception > | RemoveAsync (string key) |
| Removes the given object from distributed cache More...
|
|
Accessing cache distributed only
virtual T Sphyrnidae.Common.Cache.CacheDistributed.Get< T > |
( |
string |
key, |
|
|
Func< T > |
method |
|
) |
| |
|
virtual |
Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use
Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use
- Template Parameters
-
- Parameters
-
key | Name of the item in cache |
method | The callback function returning the item if not initially found in cache |
- Returns
- The object from cache/callback function
Implements Sphyrnidae.Common.Cache.ICache.
virtual Task<T> Sphyrnidae.Common.Cache.CacheDistributed.GetAsync< T > |
( |
string |
key, |
|
|
Func< Task< T >> |
method |
|
) |
| |
|
virtual |
Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use
Attempts to retrieve an item from cache. If not found in cache, will make callback to obtain the item from the caller which will be stored for later use
- Template Parameters
-
- Parameters
-
key | Name of the item in cache |
method | The callback function returning the item if not initially found in cache |
- Returns
- The object from cache/callback function
Implements Sphyrnidae.Common.Cache.ICache.