Models.Configuration.CacheOption Class
Namespace: Nucleus.Abstractions.Models.Configuration
Assembly: Nucleus.Abstractions.dll
Represents the configurable options for a CacheCollection.
Example
"CacheOptions": {
"PageCache": { "Capacity": 500, "ExpiryTimeMinutes": 5 }
}
Properties
Capacity
Property
The maximum number of items that can be held in the cache. When the capacity is reached, every time a new item is added, the oldest item is removed from the cache.
ExpiryTime
Property
The cache item expiry time. Items are automatically removed from the CacheCollection when the expiry time is reached.