Managers.ICacheManager Interface
Namespace: Nucleus.Abstractions.Managers
Assembly: Nucleus.Abstractions.dll
Data cache manager.
Example
public class MyClass
{
private ICacheManager CacheManager { get; }
public MyClass(ICacheManager cacheManager, Context context)
{
this.CacheManager = cacheManager;
}
}
Methods
Get<TKey, TModel>
(String) Method
Get<TKey, TModel> (System.String)
Get the Cache collection for the specified type and entity, or create and add a new one if it does not exist.
Collect
Collect ()
Remove expired items from all caches.