Show / Hide Table of Contents

Class CacheBaseV2

Base class for caches.

Inheritance
Object
CacheBaseV2
CategoryCache
ConsentCache
ProbCache
ShipmentTypeCache
QuoteLineConfigurationCache
UserGroupCache
LicenseAssocLinkCache
LicenseCache
Implements
IFlushableV2
IDisposable
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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

IFlushableV2
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