Nucleus .Net Core CMS

Models.Configuration.CacheOption Class

Namespace: Nucleus.Abstractions.Models.Configuration
Assembly: Nucleus.Abstractions.dll
Represents the configurable options for a CacheCollection.

Remarks

CacheOptions are configured in appSettings.json. Each cache has an item in the Nucleus:CacheOptions section.

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.

Fields

Section Field