SimpleHelpers.MemoryCache
1.1.0
dotnet add package SimpleHelpers.MemoryCache --version 1.1.0
NuGet\Install-Package SimpleHelpers.MemoryCache -Version 1.1.0
<PackageReference Include="SimpleHelpers.MemoryCache" Version="1.1.0" />
paket add SimpleHelpers.MemoryCache --version 1.1.0
#r "nuget: SimpleHelpers.MemoryCache, 1.1.0"
// Install SimpleHelpers.MemoryCache as a Cake Addin #addin nuget:?package=SimpleHelpers.MemoryCache&version=1.1.0 // Install SimpleHelpers.MemoryCache as a Cake Tool #tool nuget:?package=SimpleHelpers.MemoryCache&version=1.1.0
Simple lightweight object in-memory cache, with a background timer to remove expired objects.
Fast in-memory cache for data that are expensive to create and can be used in a thread-safe manner.
All stored items are kept in concurrent data structures (ConcurrentDictionary) to allow multi-thread usage of the MemoryCache static methods.
Note: this nuget package contains c# source code and depends on System.Collections.Concurrent introduced in .Net 4.0.
Learn more about Target Frameworks and .NET Standard.
-
- SimpleHelpers.NamedLock (>= 1.0.3)
GitHub repositories
This package is not used by any popular GitHub repositories.
1.1.0
* new method: Renew for sliding expiration
1.0.6
* new method: ClearByPrefix
1.0.5
* Improve null handling
1.0.4
* Nuget dependencies adjustment
1.0.3
* Allow adding null objects
* Better documentation