TwoLevelCache class
namespace: Serenity assembly: Serenity.Net.Core
A two level cache that combines an in-memory cache with a distributed cache, keeping them in sync with optional group-based cache invalidation.
public class TwoLevelCache : ITwoLevelCache
| parameter | description |
|---|---|
| memoryCache | Memory cache |
| distributedCache | Distributed cache |
Public Members
| name | description |
|---|---|
| TwoLevelCache(…) | A two level cache that combines an in-memory cache with a distributed cache, keeping them in sync with optional group-based cache invalidation. |
| Distributed { get; } | Gets distributed cache |
| Memory { get; } | Gets memory cache |
| static readonly GenerationCacheExpiration | Expiration timeout for cache generation keys |
| const GenerationSuffix | Suffix for cache generation keys |
Remarks
Creates a new TwoLevelCache instance
See Also
- interface ITwoLevelCache
- Source: TwoLevelCache.cs