In-memory cache provider for the caching abstractions in Regira Common, built on System.Runtime.Caching. MemoryCacheProvider implements ICacheProvider on MemoryCache.Default, so entries are shared process-wide and the optional key prefix (MemoryCacheProvider.Options.Prefix) is the only isolation between instances: without one, RemoveAll clears everything in MemoryCache.Default. End a prefix with a separator, such as "users:": a prefix matches by its start, so user would also cover the entries of a users provider. An entry expires after the duration given to Set, in seconds, or else after Options.DefaultDuration — one hour by default.
<PackageReference Include="Regira.Caching.Runtime" Version="6.*" />
ICacheProvider contract, and the dictionary-backed provider in Regira.CommonApache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.