LockingCacheOptionsExpiration Property

Gets or sets an expiration time for the values to be stored in the cache. If , then the values will not expire.
Default value: .

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public TimeSpan? Expiration { get; set; }

Property Value

NullableTimeSpan

Remarks

Even if this property is , values might be reloaded from time to time because if the cache is full (see Capacity) oldest or least recent used elements (see Behavior) are dropped from the cache.

Depending on the targeted platform it is possible that values will not expire for at least 15 milliseconds.

See Also