You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Si Carter edited this page Oct 13, 2018
·
1 revision
Memory Cache
The memory cache plugin is a simple Plugin module which allows websites to easily store and retrieve cached items, without using the HttpContext class.
There are two default cache's a default standard cache and a short cache.
Default Cache
The default cache holds items for a minimum of 30 minutes, default 2 hours.
Short Cache
This cache is designed to hold cached items for only a minimum of 1 minute but default 5 minutes.
Settings
The Memory Cache module can be configured using appsettings.json. Add an entry called MemoryCachePluginConfiguration, this has two settings:
DefaultCacheDuration
Int, number of minutes the default cache will hold cached items for. Minimum of 30, maximum unlimited.
ShortCacheDuration
Int, number of minutes to cache items for. Minimum 1, maximum unlimited.