Wangcaisoft.DotNet.Util.Cache
1.2.2026.1105
dotnet add package Wangcaisoft.DotNet.Util.Cache --version 1.2.2026.1105
NuGet\Install-Package Wangcaisoft.DotNet.Util.Cache -Version 1.2.2026.1105
<PackageReference Include="Wangcaisoft.DotNet.Util.Cache" Version="1.2.2026.1105" />
<PackageVersion Include="Wangcaisoft.DotNet.Util.Cache" Version="1.2.2026.1105" />
<PackageReference Include="Wangcaisoft.DotNet.Util.Cache" />
paket add Wangcaisoft.DotNet.Util.Cache --version 1.2.2026.1105
#r "nuget: Wangcaisoft.DotNet.Util.Cache, 1.2.2026.1105"
#:package Wangcaisoft.DotNet.Util.Cache@1.2.2026.1105
#addin nuget:?package=Wangcaisoft.DotNet.Util.Cache&version=1.2.2026.1105
#tool nuget:?package=Wangcaisoft.DotNet.Util.Cache&version=1.2.2026.1105
Wangcaisoft.DotNet.Util.Cache
缓存工具 / Caching utilities
简介 / Introduction
DotNet.Util.Cache 在 DotNet.Util 之上提供统一的内存缓存与 Redis 缓存封装,业务层可通过一致的 CacheUtil 接口读写,并在配置切换时无缝在内存与 Redis 之间迁移。
DotNet.Util.Cache builds on DotNet.Util to provide unified in-memory and Redis caching. Business code uses a single CacheUtil interface and can switch between memory and Redis via configuration.
包含内容 / What's Inside
- 内存缓存:基于
Microsoft.Extensions.Caching.Memory的统一缓存接口。 - Redis 缓存:基于
NewLife.Redis的分布式缓存实现。 - 通过
BaseSystemInfo配置缓存类型与 Redis 连接,对外暴露一致的CacheUtilAPI。
安装 / Installation
dotnet add package Wangcaisoft.DotNet.Util.Cache
目标框架 / Target Frameworks
net462 · net47 · net48 · net6.0 · net8.0 · net10.0 · netstandard2.0 · netstandard2.1
依赖 / Dependencies
Wangcaisoft.DotNet.Util- Microsoft.Extensions.Caching.Memory
10.0.11 - NewLife.Redis
6.6.2026.901
快速使用 / Quick Start
using DotNet.Util;
// 内存 / Redis 统一缓存接口(由 BaseSystemInfo 决定后端)
CacheUtil.Set("cacheKey", someObject, expireMinutes: 30);
object value = CacheUtil.Get("cacheKey");
更多 API 详见各类型随包提供的 XML 文档注释(IntelliSense)。
许可证 / License
MIT — ©2008-2026 Wangcaisoft
链接 / Links
- 仓库 / Repository: https://github.com/cuiwenyuan/DotNet.Util
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. 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 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
.NETFramework 4.7
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
.NETFramework 4.8
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
.NETStandard 2.1
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
net10.0
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
-
net8.0
- Microsoft.Extensions.Caching.Memory (>= 10.0.11)
- NewLife.Redis (>= 7.0.2026.1024)
- Wangcaisoft.DotNet.Util (>= 1.2.2026.1105)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Wangcaisoft.DotNet.Util.Cache:
| Package | Downloads |
|---|---|
|
Wangcaisoft.DotNet.Business
DotNet.Business is sample for User,Role,Menu,Module,Permission etc Management. A set of .NET 10/8/6/Standard 2.1/Standard 2.0 utilities(partial but great majority support .net framework 4.62/4.7/4.8). Please visit https://github.com/cuiwenyuan/DotNet.Util for more information |
|
|
Wangcaisoft.DotNet.Business.Web
DotNet.Business.Web is WebForm/WebApi/MVC client sample for User,Role,Menu,Module,Permission etc Management. Please visit https://github.com/cuiwenyuan/DotNet.Util for more information |
|
|
Wangcaisoft.DotNet.Web.UI.BasePage
DotNet.Web.UI.BasePage is BasePage for WebForm Applications. More details please visit https://github.com/cuiwenyuan/DotNet.Util for more information |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.2026.1105 | 223 | 11/5/2026 |
| 1.2.2026.1001 | 295 | 10/1/2026 |
| 1.2.2026.918 | 330 | 9/18/2026 |
| 1.2.2025.1011 | 508 | 10/11/2025 |
| 1.2.2025.928 | 528 | 9/28/2025 |
| 1.2.2025.926 | 526 | 9/26/2025 |
| 1.2.2025.908 | 407 | 9/8/2025 |
| 1.2.2025.401 | 493 | 4/1/2025 |
| 1.2.2024.1231 | 468 | 12/31/2024 |
| 1.2.2024.802 | 494 | 8/2/2024 |
| 1.2.2024.607 | 502 | 6/7/2024 |
| 1.1.2024.202 | 811 | 2/2/2024 |
| 1.1.2024.129 | 757 | 1/29/2024 |
| 1.1.2024.116 | 712 | 1/16/2024 |
| 1.1.2023.917 | 1,008 | 9/17/2023 |
| 1.1.2023.730 | 1,056 | 7/30/2023 |
| 1.0.16 | 1,649 | 12/30/2022 |
| 1.0.15 | 1,982 | 10/18/2022 |
| 1.0.14 | 1,886 | 9/18/2022 |
| 1.0.13 | 1,944 | 9/11/2022 |
Please visit https://github.com/cuiwenyuan/DotNet.Util for details