SquidStd.Caching.Redis
0.27.0
dotnet add package SquidStd.Caching.Redis --version 0.27.0
NuGet\Install-Package SquidStd.Caching.Redis -Version 0.27.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="SquidStd.Caching.Redis" Version="0.27.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SquidStd.Caching.Redis" Version="0.27.0" />
<PackageReference Include="SquidStd.Caching.Redis" />
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 SquidStd.Caching.Redis --version 0.27.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SquidStd.Caching.Redis, 0.27.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 SquidStd.Caching.Redis@0.27.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=SquidStd.Caching.Redis&version=0.27.0
#tool nuget:?package=SquidStd.Caching.Redis&version=0.27.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<h1 align="center">SquidStd.Caching.Redis</h1>
Redis backend for SquidStd.Caching. Implements ICacheProvider on top of StackExchange.Redis,
so the same ICacheService API reads and writes a real Redis server with native key expiry.
Registered with a single AddRedisCache(...) call.
Install
dotnet add package SquidStd.Caching.Redis
Usage
using DryIoc;
using SquidStd.Caching.Abstractions.Interfaces;
using SquidStd.Caching.Redis.Extensions;
var container = new Container();
container.AddRedisCache("redis://localhost:6379?defaultTtlSeconds=300&keyPrefix=app:");
var cache = container.Resolve<ICacheService>();
await cache.SetAsync("user:1", new { Name = "squid" }, TimeSpan.FromMinutes(10));
var user = await cache.GetAsync<object>("user:1");
Key types
| Type | Purpose |
|---|---|
RedisCacheRegistrationExtensions |
AddRedisCache(...) registration. |
RedisCacheProvider |
StackExchange.Redis-backed ICacheProvider. |
RedisCacheOptions |
StackExchange.Redis connection configuration. |
Related
- Tutorial: Caching
License
MIT - part of SquidStd.
| Product | Versions 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.
-
net10.0
- DryIoc.dll (>= 5.4.3)
- SquidStd.Caching.Abstractions (>= 0.27.0)
- StackExchange.Redis (>= 3.0.11)
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.27.0 | 0 | 7/7/2026 |
| 0.26.0 | 0 | 7/7/2026 |
| 0.25.0 | 51 | 7/6/2026 |
| 0.24.1 | 58 | 7/6/2026 |
| 0.24.0 | 50 | 7/6/2026 |
| 0.23.0 | 48 | 7/4/2026 |
| 0.22.0 | 47 | 7/4/2026 |
| 0.21.0 | 50 | 7/3/2026 |
| 0.20.0 | 44 | 7/3/2026 |
| 0.19.0 | 48 | 7/3/2026 |
| 0.18.0 | 50 | 7/3/2026 |
| 0.17.0 | 53 | 7/3/2026 |
| 0.16.0 | 52 | 7/3/2026 |
| 0.15.0 | 81 | 7/2/2026 |
| 0.14.1 | 97 | 7/2/2026 |
| 0.14.0 | 77 | 7/2/2026 |
| 0.13.0 | 82 | 7/2/2026 |
| 0.12.0 | 82 | 7/2/2026 |
| 0.11.0 | 81 | 7/2/2026 |
| 0.10.0 | 86 | 6/30/2026 |
Loading failed