Liwendong.Frameworks.CacheExtend
1.4.1
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
.NET Framework 4.5.1
This package targets .NET Framework 4.5.1. The package is compatible with this framework or higher.
dotnet add package Liwendong.Frameworks.CacheExtend --version 1.4.1
NuGet\Install-Package Liwendong.Frameworks.CacheExtend -Version 1.4.1
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="Liwendong.Frameworks.CacheExtend" Version="1.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Liwendong.Frameworks.CacheExtend" Version="1.4.1" />
<PackageReference Include="Liwendong.Frameworks.CacheExtend" />
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 Liwendong.Frameworks.CacheExtend --version 1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Liwendong.Frameworks.CacheExtend, 1.4.1"
#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 Liwendong.Frameworks.CacheExtend@1.4.1
#: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=Liwendong.Frameworks.CacheExtend&version=1.4.1
#tool nuget:?package=Liwendong.Frameworks.CacheExtend&version=1.4.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Liwendong.Frameworks.CacheExtend
基础框架 缓存扩展
更新日志
V1.4.0 (2026-10-09)
- 新增:
LockOrThrow方法,获取锁失败直接抛出EasyErrorException异常 - 新增:
LockOrThrow<T>泛型版本,支持返回值
V1.3.1 (2026-10-09)
- 修复:LockHelper 加锁非原子问题(SetNx+Expire分离),改为原子SET NX EX
- 修复:LockHelper 释放锁不校验持有者,改为Lua脚本比对GUID token
- 修复:LockHelper 移除throw ex保留堆栈
- 修复:CookieInsteadSessionHelper 使用配置的RedisConnection
- 修复:CookieInsteadSessionHelper Session缓存TTL与Cookie过期时间一致
- 修复:CookieInsteadSessionHelper 异常类型和常量命名
- 修复:MultiCacheFramework XML注释缺失
V1.3.0
- 新增了 CookieInsteadSessionHelper, Session存储在Cookie中的用法
V1.1.0
- 新增了 LockHelper 方法
版本历史
1.4.1 (2026-10-17)
- 修复:
LockHelper.Lock内存锁路径忽略超时参数的问题(现限时等待,与 Redis 路径语义一致);RedisLock 等待计时改 Stopwatch(防时钟跳变)、补 CSRedis 未初始化的明确报错与参数校验;CookieInsteadSession 忽略锁返回值导致并发下 Session 静默丢失的问题、读改写两段锁丢更新问题(现合并为单锁);MultiCacheFramework 静态构造异常毒化类型问题(改显式 Init + 失败降级) - 优化:
GetSiteCache返回共享实例;分布式锁文档明确"执行体必须在 lockExpirySeconds 内完成(暂无自动续期)"
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 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. |
| .NET Core | netcoreapp3.1 is compatible. |
| .NET Framework | net451 is compatible. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
-
.NETFramework 4.5.1
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
-
.NETFramework 4.6
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
-
.NETFramework 4.7
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
-
.NETFramework 4.8
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
-
net8.0
- Liwendong.CacheExtend (>= 1.5.0)
- Liwendong.CacheExtend.CSRedis (>= 1.1.2)
- Liwendong.Frameworks (>= 1.8.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.