Class CacheBaseV2
Base class for caches.
Inheritance
CacheBaseV2
Inherited Members
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
public abstract class CacheBaseV2 : IFlushableV2, IDisposable
Remarks
Implement this class if you want to implement a cache within NetServer. Classes implementing this class should always be instantiated with the Get<T>() method.
Constructors
CacheBaseV2()
Default constructor for CacheBase
Declaration
protected CacheBaseV2()
Remarks
Classes inheriting this class should only be instantiated through the Get<T>() method.
Exceptions
Type | Condition |
---|---|
SecurityException | This exception will be thrown if not above elements in the call stack is saved with the SuperOffice strong name. |
Methods
BeginDisableAutoUpdate()
Declaration
public CacheManager.DisableAutoUpdateScope BeginDisableAutoUpdate()
Returns
Type | Description |
---|---|
CacheManager.DisableAutoUpdateScope |
Dispose()
Dispose of the cache
Declaration
public void Dispose()
Flush()
Releases the cache instance for the GC to clean up, next cache fetched will be a new instance with new data loaded.
Declaration
public void Flush()
Load()
Loads the cache data
Declaration
protected void Load()
OnLoad()
Declaration
protected abstract void OnLoad()
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)