PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends Namespace / Memory­Cache­Backend Class / Memory­Cache­Backend Constructor

MemoryCacheBackend Constructor

Overload List
  NameDescription
Public methodMemoryCacheBackend()
Initializes a new MemoryCacheBackend based on a new instance of the MemoryCache class.
Public methodMemoryCacheBackend(IMemoryCache)
Initializes a new MemoryCacheBackend based on the given IMemoryCache.
Public methodMemoryCacheBackend(IMemoryCache, Func<CacheItem, Int64>)
Initializes a new MemoryCacheBackend based on the given IMemoryCache. The backend creates cache entries with size calculated by the given function.
See Also