Class SoCache
Utility class for dealing with caches.
Inherited Members
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
public sealed class SoCache
Methods
Flush()
Force all caches in the system to be flushed.
Declaration
public static void Flush()
Flush(Type)
Force a single cache to be flushed
Declaration
public static void Flush(Type cacheType)
Parameters
Type | Name | Description |
---|---|---|
Type | cacheType | The type that identifies the cache |
GetAllCachesInContext()
Declaration
public static IEnumerable<IFlushable> GetAllCachesInContext()
Returns
Type | Description |
---|---|
IEnumerable<IFlushable> |
GetCache(Type)
Get a cache given its' type.
Declaration
public static CacheBase GetCache(Type cacheType)
Parameters
Type | Name | Description |
---|---|---|
Type | cacheType | Type of the cache |
Returns
Type | Description |
---|---|
CacheBase | Instance of the given cache |
GetCache<T>()
Get a cache given its' type.
Declaration
public static T GetCache<T>()
where T : CacheBase
Returns
Type | Description |
---|---|
T | Instance of the given cache |
Type Parameters
Name | Description |
---|---|
T | Type of the cache |
Extension Methods
EnumUtil.MapEnums<From, To>(From)