Class CacheManager
Utility class for dealing with caches.
Implements
Inherited Members
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class CacheManager : 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 |
GetAllCachesInContext()
Utility class for dealing with caches.
Declaration
public IEnumerable<IFlushableV2> GetAllCachesInContext()
Returns
Type | Description |
---|---|
IEnumerable<IFlushableV2> |
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 |
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 |
---|---|
bool |