ThrottlingTroll.CounterStores.DistributedCache
7.1.0-beta1
See the version list below for details.
dotnet add package ThrottlingTroll.CounterStores.DistributedCache --version 7.1.0-beta1
NuGet\Install-Package ThrottlingTroll.CounterStores.DistributedCache -Version 7.1.0-beta1
<PackageReference Include="ThrottlingTroll.CounterStores.DistributedCache" Version="7.1.0-beta1" />
paket add ThrottlingTroll.CounterStores.DistributedCache --version 7.1.0-beta1
#r "nuget: ThrottlingTroll.CounterStores.DistributedCache, 7.1.0-beta1"
// Install ThrottlingTroll.CounterStores.DistributedCache as a Cake Addin #addin nuget:?package=ThrottlingTroll.CounterStores.DistributedCache&version=7.1.0-beta1&prerelease // Install ThrottlingTroll.CounterStores.DistributedCache as a Cake Tool #tool nuget:?package=ThrottlingTroll.CounterStores.DistributedCache&version=7.1.0-beta1&prerelease
ThrottlingTroll.CounterStores.DistributedCache
ICounterStore implementation that uses ASP.NET Core's IDistributedCache.
Fast, but not entirely consistent (because IDistributedCache does not provide atomic operations). In other words, your computing instances might go slightly on their own. For true consistency consider using ThrottlingTroll.CounterStores.Redis instead.
How to use
Install package from NuGet:
dotnet add package ThrottlingTroll.CounterStores.DistributedCache
Configure an IDistributedCache option of your choice as described here.
EITHER put DistributedCacheCounterStore instance into your DI container:
builder.Services.AddSingleton<ICounterStore>(provider => new DistributedCacheCounterStore(provider.GetRequiredService<IDistributedCache>()) );
OR provide an instance of it via .UseThrottlingTroll() method:
app.UseThrottlingTroll(options => { options.CounterStore = new DistributedCacheCounterStore(app.Services.GetRequiredService<IDistributedCache>()); });
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.Caching.Abstractions (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
7.3.0 | 80 | 10/14/2024 |
7.2.0 | 159 | 8/31/2024 |
7.2.0-beta1 | 78 | 8/31/2024 |
7.1.2 | 117 | 6/12/2024 |
7.1.1 | 81 | 6/3/2024 |
7.1.0 | 98 | 6/1/2024 |
7.1.0-beta1 | 89 | 6/1/2024 |
7.0.0 | 100 | 5/15/2024 |
7.0.0-beta2 | 92 | 5/10/2024 |
7.0.0-beta1 | 105 | 5/5/2024 |
6.1.2 | 110 | 4/5/2024 |
6.1.0 | 99 | 1/28/2024 |
6.0.0 | 167 | 12/4/2023 |
6.0.0-beta6 | 123 | 11/26/2023 |
6.0.0-beta5 | 119 | 11/26/2023 |
6.0.0-beta4 | 122 | 11/26/2023 |
6.0.0-beta3 | 101 | 11/26/2023 |
6.0.0-beta2 | 121 | 11/26/2023 |
6.0.0-beta1 | 110 | 11/25/2023 |
5.0.0 | 1,035 | 11/2/2023 |
4.0.5 | 197 | 8/27/2023 |
4.0.4 | 167 | 7/22/2023 |
1.0.0-preview1 | 161 | 7/22/2023 |