Show / Hide Table of Contents

Interface ICacheManager

Namespace: SuperOffice.Data.Cache
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
Type Name Description
CacheBaseV2[] cache

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
Name Description
T

GetAllCachesInContext()

Declaration
IEnumerable<CacheBaseV2> GetAllCachesInContext()
Returns
Type Description
IEnumerable<CacheBaseV2>

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
Type Name Description
CancellationToken cancellationToken
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
Type Description
bool

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top