Interface ICacheParams
Supplies caching params
Namespace: Azos.Data
Assembly: Azos.dll
Syntax
public interface ICacheParams
Properties
CacheAbsentData
When true would cache the instance of AbsentData to signify the absence of data in the backend for key
Declaration
bool CacheAbsentData { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ReadCacheMaxAgeSec
If greater than 0 then would allow reading a cached result for up-to the specified number of seconds. If =0 uses cache's default span. Less than 0 does not try to read from cache
Declaration
int ReadCacheMaxAgeSec { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
WriteCacheMaxAgeSec
If greater than 0 then writes to cache with the expiration. If =0 uses cache's default life span. Less than 0 does not write to cache
Declaration
int WriteCacheMaxAgeSec { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
WriteCachePriority
Relative cache priority which is used when WriteCacheMaxAgeSec>=0
Declaration
int WriteCachePriority { get; }
Property Value
Type | Description |
---|---|
System.Int32 |