ArkaSoftware.Extensions.Caching.Distributed.Redis
1.0.1
dotnet add package ArkaSoftware.Extensions.Caching.Distributed.Redis --version 1.0.1
NuGet\Install-Package ArkaSoftware.Extensions.Caching.Distributed.Redis -Version 1.0.1
<PackageReference Include="ArkaSoftware.Extensions.Caching.Distributed.Redis" Version="1.0.1" />
<PackageVersion Include="ArkaSoftware.Extensions.Caching.Distributed.Redis" Version="1.0.1" />
<PackageReference Include="ArkaSoftware.Extensions.Caching.Distributed.Redis" />
paket add ArkaSoftware.Extensions.Caching.Distributed.Redis --version 1.0.1
#r "nuget: ArkaSoftware.Extensions.Caching.Distributed.Redis, 1.0.1"
#:package ArkaSoftware.Extensions.Caching.Distributed.Redis@1.0.1
#addin nuget:?package=ArkaSoftware.Extensions.Caching.Distributed.Redis&version=1.0.1
#tool nuget:?package=ArkaSoftware.Extensions.Caching.Distributed.Redis&version=1.0.1
ArkaSoftware Redis Distributed Cache Extension
A professional, high-performance distributed caching extension built with Redis, designed specifically for use in .NET applications. Easy integration, clean architecture, and seamless performance make this package a must-have tool for developers.
🌟 Key Features
- Easy Integration: Simple to use dependency injection extensions.
- Flexible Configuration: Supports various configurations including JSON-based and inline setup.
- High Performance: Built on top of StackExchange.Redis.
- Clean Architecture: Follows best practices and principles of clean code.
🚀 Installation
Install via NuGet:
dotnet add package ArkaSoftware.Extensions.Caching.Distributed.Redis
⚙️ Configuration
Add Redis caching services easily via IServiceCollection:
Using Configuration File (appsettings.json)
"DistributedRedisCacheOptions": {
"Configuration": "localhost:6379",
"InstanceName": "SampleInstance"
}
Configure in Program.cs
services.AddArkaSoftwareRedisDistributedCache(Configuration, "DistributedRedisCacheOptions");
Inline Configuration
services.AddArkaSoftwareRedisDistributedCache(options => {
options.Configuration = "localhost:6379";
options.InstanceName = "SampleInstance";
});
📌 Usage
public class MyService
{
private readonly ICacheAdapter _cacheAdapter;
public MyService(ICacheAdapter cacheAdapter)
{
_cacheAdapter = cacheAdapter;
}
public void CacheData()
{
_cacheAdapter.Add("key", new { Value = "Data" }, DateTime.UtcNow.AddHours(1), null);
var cachedData = _cacheAdapter.Get<object>("key");
_cacheAdapter.RemoveCache("key");
}
}
📂 Project Structure
ArkaSoftware.Extensions.Caching.Distributed.Redis
├── Extensions
│ └── DependencyInjection
│ └── DistributedRedisCacheServiceCollectionExtensions.cs
├── Options
│ └── DistributedRedisCacheOptions.cs
└── Services
└── DistributedRedisCacheAdapter.cs
📦 csproj Metadata
Recommended metadata for your .csproj file to prepare for NuGet publishing:
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>ArkaSoftware.Extensions.Caching.Distributed.Redis</PackageId>
<Version>1.0.0</Version>
<Authors>ArkaSoftware</Authors>
<Company>ArkaSoftware</Company>
<Product>Redis Distributed Cache Adapter</Product>
<Description>A Redis-based distributed caching extension for .NET applications, optimized for ease of use, performance, and clean architecture.</Description>
<RepositoryUrl>https://github.com/your-repo</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>redis;cache;distributed-cache;caching;dotnet;extensions</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🏢 Maintained by
ArkaSoftware
📧 Email Us
🌐 Web Site Visit
© 2025 ArkaSoftware
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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 was computed. 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. |
-
net9.0
- ArkaSoftware.Extensions.Chaching.Abstractions (>= 2.0.0)
- ArkaSoftware.Extensions.Serializers.Abstractions (>= 2.0.0)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.4)
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection (>= 9.0.4)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.4)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.4)
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.1 | 172 | 4/25/2025 |