Class CacheV2Attribute
Inherited Members
Namespace: SuperOffice.Data.Cache
Assembly: SoDataBase.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class CacheV2Attribute : Attribute
Constructors
CacheV2Attribute(int)
Declaration
public CacheV2Attribute(int absoluteExpirationInSeconds = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | 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 |
|---|---|
| int |