SlimMemoryCacheOptions Constructor
Definition
- Assemblies
- Cuemon.Runtime.Caching.dll
SlimMemoryCacheOptions()
Initializes a new instance of the SlimMemoryCacheOptions class.
public SlimMemoryCacheOptions()
Remarks
The following table shows the initial property values for an instance of SlimMemoryCacheOptions.
| Property | Initial Value |
|---|---|
| EnableCleanup | true |
| FirstSweep | After 30 seconds |
| SucceedingSweep | Every 2 minutes |
| KeyProvider | (key, ns) => Generate.HashCode64(ns == Cache.NoScope ? key.ToUpperInvariant() : $"{key}^{nameof(SlimMemoryCache)}^{ns}".ToUpperInvariant()); |