Interface ICacheManager
Assembly: SoDataBase.dll
Syntax
public interface ICacheManager
Methods
Flush(params CacheBaseV2[])
Removes the cache instance from the system so it'll be queued for GC, next time we request the
cache it will be recreated.
Declaration
void Flush(params CacheBaseV2[] cache)
Parameters
Flush<T>()
Removes the cache instance from the system so it'll be queued for GC, next time we request the
cache it will be recreated.
Declaration
void Flush<T>() where T : CacheBaseV2
Type Parameters
GetAllCachesInContext()
Declaration
IEnumerable<CacheBaseV2> GetAllCachesInContext()
Returns
GetOrCreateAsync<T>(CancellationToken)
Get a cache given its' type, or create it if a instance is not found.
Declaration
ValueTask<T> GetOrCreateAsync<T>(CancellationToken cancellationToken = default) where T : CacheBaseV2
Parameters
Returns
Type |
Description |
ValueTask<T> |
Instance of the given cache
|
Type Parameters
Name |
Description |
T |
Type of the cache
|
GetOrCreate<T>()
Get a cache given its' type, or create it if a instance is not found.
Declaration
T GetOrCreate<T>() where T : CacheBaseV2
Returns
Type |
Description |
T |
Instance of the given cache
|
Type Parameters
Name |
Description |
T |
Type of the cache
|
IsAutoUpdateDisabled(string)
Determine if automatic updates are disabled for a particular table (not a particular cache!)
Declaration
bool IsAutoUpdateDisabled(string tableName)
Parameters
Type |
Name |
Description |
string |
tableName |
|
Returns
Extension Methods