Nucleus .Net Core CMS

Models.Configuration.CacheOption Class

Namespace: Nucleus.Abstractions.Models.Configuration
Assembly: Nucleus.Abstractions.dll
Represents the configurable options for a CacheCollection.
CacheOptions are configured in appSettings.json. Each cache has an item in the Nucleus:CacheOptions section.
"CacheOptions": { 
  "PageCache": { "Capacity": 500, "ExpiryTimeMinutes": 5 } 
 }
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.
The cache item expiry time. Items are automatically removed from the CacheCollection when the expiry time is reached.