Naravel.Routing.Cache 0.2.0

dotnet add package Naravel.Routing.Cache --version 0.2.0
                    
NuGet\Install-Package Naravel.Routing.Cache -Version 0.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Naravel.Routing.Cache" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Naravel.Routing.Cache" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Naravel.Routing.Cache" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Naravel.Routing.Cache --version 0.2.0
                    
#r "nuget: Naravel.Routing.Cache, 0.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Naravel.Routing.Cache@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Naravel.Routing.Cache&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Naravel.Routing.Cache&version=0.2.0
                    
Install as a Cake Tool

Naravel.Routing.Cache

NuGet Downloads .NET 10 License: MIT

A shared store for the Naravel.Routing throttle middleware, counting in a Naravel.Cache store (for example Redis) so every application instance uses one quota.

Fact Detail
Install dotnet add package Naravel.Routing.Cache
Targets .NET 10
Needs Naravel.Routing and Naravel.Cache, which NuGet installs with it, and ASP.NET Core (the Microsoft.AspNetCore.App shared framework)
Providers a Naravel.Cache provider such as Naravel.Cache.Redis makes the store shared between instances

What you get

  • One quota for every instance. The throttle middleware of Naravel.Routing counts in a Naravel.Cache store instead of in the process.
  • Nothing else changes. Policies and throttle:login stay as they are.
  • Shared only if the store is. A Redis or Memcached store is shared between instances; a Memory store is still per process.
  • The problem it solves. Without it each process counts alone, so N instances allow N times the limit.

Quick start

builder.Services.AddNaravelCache(builder.Configuration);
builder.Services.AddNaravelRedisCache(builder.Configuration);   // from Naravel.Cache.Redis
builder.Services.AddNaravelRouting();
builder.Services.AddNaravelSharedThrottle("redis");

Learn more

Part of Naravel: Laravel's names, .NET's type system. All Naravel packages share one version.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.2.0 88 11/13/2026