Show / Hide Table of Contents

Class CacheV2Attribute

Inheritance
Object
SoInjectAttribute
CacheV2Attribute
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
public class CacheV2Attribute : SoInjectAttribute

Constructors

CacheV2Attribute(String, Int32)

Declaration
public CacheV2Attribute(string instanceContainerName = "Database", int absoluteExpirationInSeconds = 0)
Parameters
Type Name Description
String instanceContainerName
Int32 absoluteExpirationInSeconds

Number of seconds before the local cache expires and triggers a flush. By default a cache will not have an absolute expiration. This expiration feature is based on timeout and is not distributed. The purpose is to have read-through caches free up memory by cleaning up local (some of them potentially stale) cache items.

Properties

AbsoluteExpirationInSeconds

Number of seconds before the local cache expires and triggers a flush. By default a cache will not have an absolute expiration. This expiration feature is based on timeout and is not distributed. The purpose is to have read-through caches free up memory by cleaning up local (some of them potentially stale) cache items.

Declaration
public int AbsoluteExpirationInSeconds { get; }
Property Value
Type Description
Int32

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