Show / Hide Table of Contents

Class CacheManager

Utility class for dealing with caches.

Inheritance
Object
CacheManager
Implements
IDisposable
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class CacheManager : Object, IDisposable

Methods

Dispose()

Utility class for dealing with caches.

Declaration
public void Dispose()

Get(Type)

Get a cache given its' type.

Declaration
public CacheBaseV2 Get(Type cacheType)
Parameters
Type Name Description
Type cacheType

Type of the cache

Returns
Type Description
CacheBaseV2

Instance of the given cache

Get<T>()

Get a cache given its type.

Declaration
public T Get<T>()
    where T : CacheBaseV2
Returns
Type Description
T

Instance of the given cache

Type Parameters
Name Description
T

Type of the cache

GetAllCachesInContext()

Utility class for dealing with caches.

Declaration
public IEnumerable<IFlushableV2> GetAllCachesInContext()
Returns
Type Description
IEnumerable<IFlushableV2>

IsAutoUpdateDisabled(String)

Determine if automatic updates are disabled for a particular table (not a particular cache!)

Declaration
public bool IsAutoUpdateDisabled(string tableName)
Parameters
Type Name Description
String tableName
Returns
Type Description
Boolean

Implements

System.IDisposable

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