MetalamaAPI documentationPatterns APIMetalama.​Patterns.​CachingCache­Item­Configuration
Open sandboxFocus

CacheItemConfiguration Class

Configuration of a CacheItem.

Inheritance
System.Object
CacheItemConfiguration
Implements
ICacheItemConfiguration
System.IEquatable<CacheItemConfiguration>
Namespace: Metalama.Patterns.Caching
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
[RunTimeOrCompileTime]
public class CacheItemConfiguration : Object, ICacheItemConfiguration

Constructors

Name Description
CacheItemConfiguration()
CacheItemConfiguration(CacheItemConfiguration)
CacheItemConfiguration(CacheItemConfiguration, ICacheItemConfiguration)

Properties

Name Description
AbsoluteExpiration

Gets the total duration during which the result of the cached methods is stored in cache. The absolute expiration time is counted from the moment the method is evaluated and cached.

AutoReload

Gets a value indicating whether the method calls are automatically reloaded (by re-evaluating the target method with the same arguments) when the cache item is removed from the cache.

EqualityContract
IsEnabled

Gets a value indicating whether caching is enabled.

Priority

Gets the priority of the cached method.

ProfileName

Gets the name of the caching profile that contains the configuration of the cached methods.

SlidingExpiration

Gets the duration during which the result of the cached methods is stored in cache after it has been added to or accessed from the cache. The expiration is extended every time the value is accessed from the cache.

Methods

Name Description
<Clone>$()
ApplyBaseValues(ICacheItemConfiguration)
Equals(CacheItemConfiguration)
Equals(Object)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

Name Description
Equality(CacheItemConfiguration, CacheItemConfiguration)
Inequality(CacheItemConfiguration, CacheItemConfiguration)