SplatDev.Cache.Redis
1.0.2
dotnet add package SplatDev.Cache.Redis --version 1.0.2
NuGet\Install-Package SplatDev.Cache.Redis -Version 1.0.2
<PackageReference Include="SplatDev.Cache.Redis" Version="1.0.2" />
<PackageVersion Include="SplatDev.Cache.Redis" Version="1.0.2" />
<PackageReference Include="SplatDev.Cache.Redis" />
paket add SplatDev.Cache.Redis --version 1.0.2
#r "nuget: SplatDev.Cache.Redis, 1.0.2"
#:package SplatDev.Cache.Redis@1.0.2
#addin nuget:?package=SplatDev.Cache.Redis&version=1.0.2
#tool nuget:?package=SplatDev.Cache.Redis&version=1.0.2
SplatDev.Cache.Redis
StackExchange.Redis adapter for SplatDev.Cache abstractions — distributed caching with connection multiplexing.
Compatibility
| .NET | Umbraco | Package Version |
|---|---|---|
| 8.0 | 13 | 1.0.0 |
| 10.0 | 17 | 1.0.0 |
Installation
dotnet add package SplatDev.Cache.Redis
Configuration
DI registration
using SplatDev.Cache.Redis.Extensions;
// Simple registration with connection string
builder.Services.AddRedisCache("localhost:6379,password=xxx,abortConnect=false");
// Or with options pattern
builder.Services.AddRedisCache(options =>
{
options.ConnectionString = "localhost:6379,password=xxx,abortConnect=false";
});
Appsettings integration
var redisConnectionString = builder.Configuration.GetConnectionString("Redis");
builder.Services.AddRedisCache(redisConnectionString!);
Usage
using SplatDev.Cache;
public class ProductService
{
private readonly ICacheProvider _cache;
public ProductService(ICacheProvider cache) => _cache = cache;
public async Task<Product?> GetProductAsync(string sku)
{
return await _cache.GetOrCreateAsync(
$"product:{sku}",
async ct => await FetchFromDatabaseAsync(sku, ct),
CacheEntryOptions.WithAbsoluteExpiration(TimeSpan.FromMinutes(10)));
}
}
Features
- Full
ICacheProviderimplementation backed byStackExchange.Redis - JSON serialization via
System.Text.Json - Connection multiplexing for efficient connection sharing
- Configurable connection (connect timeout 5s, abort-on-connect-fail disabled)
- Both sync and async support
- Graceful expiry via
CacheEntryOptions
Dependencies
| Package | Purpose |
|---|---|
SplatDev.Cache |
Core abstractions (ICacheProvider) |
StackExchange.Redis |
Redis client with connection multiplexing |
System.Text.Json |
Value serialization |
SplatDev.Cache.Redis — part of the SplatDev.Umbraco.Plugins suite. Licensed under MIT. © SplatDev Ltda.
Changelog
1.0.2 — 2026-08-24
Removes a dashboard screenshot that showed an error toast. It was captured against a site where this plugin's API was unreachable, so it advertised a broken dashboard. No screenshot is better than a misleading one; a replacement will be taken against a working install.
1.0.1 — 2026-08-24
Package metadata only: the listing now carries an icon and search tags, and the project and repository links point at the organisation that actually hosts this code. No code changes.
1.0.0 — 2026-08-24
This package now keeps a changelog. Earlier releases predate it and are not reconstructed here — consult the repository history for those. From this version on, every release records what changed for someone using it.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- SplatDev.Cache (>= 1.0.3)
- StackExchange.Redis (>= 2.8.31)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.7)
- SplatDev.Cache (>= 1.0.3)
- StackExchange.Redis (>= 2.8.31)
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 |
|---|---|---|
| 1.0.2 | 38 | 8/24/2026 |