-
Notifications
You must be signed in to change notification settings - Fork 19
Memory Cache Plugin
Si Carter edited this page Oct 13, 2018
·
1 revision
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.
The default cache holds items for a minimum of 30 minutes, default 2 hours.
This cache is designed to hold cached items for only a minimum of 1 minute but default 5 minutes.
The Memory Cache module can be configured using appsettings.json. Add an entry called MemoryCachePluginConfiguration, this has two settings:
Int, number of minutes the default cache will hold cached items for. Minimum of 30, maximum unlimited.
Int, number of minutes to cache items for. Minimum 1, maximum unlimited.