CacheInvalidation Constructor
Definition
- Assemblies
- Cuemon.Runtime.Caching.dll
CacheInvalidation(DateTime)
Initializes a new instance of the CacheInvalidation class.
public CacheInvalidation(DateTime absoluteExpiration)
Parameters
absoluteExpirationDateTimeThe absolute expiration date time value from when the cached value becomes invalid and is removed from the cache.
CacheInvalidation(IEnumerable<IDependency>)
Initializes a new instance of the CacheInvalidation class.
public CacheInvalidation(IEnumerable<IDependency> dependencies)
Parameters
dependenciesIEnumerable<IDependency>A sequence of IDependency implementations that monitors changes in the state of the data which a cache entry depends on. If a state change is registered, the cached value becomes invalid and is removed from the cache.
CacheInvalidation(TimeSpan)
Initializes a new instance of the CacheInvalidation class.
public CacheInvalidation(TimeSpan slidingExpiration)
Parameters
slidingExpirationTimeSpanThe sliding expiration time from when the cached value becomes invalid and is removed from the cache.