HB.CacheDb 1.0.21

dotnet add package HB.CacheDb --version 1.0.21
NuGet\Install-Package HB.CacheDb -Version 1.0.21
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="HB.CacheDb" Version="1.0.21" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HB.CacheDb --version 1.0.21
#r "nuget: HB.CacheDb, 1.0.21"
#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.
// Install HB.CacheDb as a Cake Addin
#addin nuget:?package=HB.CacheDb&version=1.0.21

// Install HB.CacheDb as a Cake Tool
#tool nuget:?package=HB.CacheDb&version=1.0.21

缓存数据库中间件,用于读多写少的情景。使用内存减轻数据库连接。提高系统响应效率。新增缓存锁,monitor.tryenter防止高并发下死锁报错,默认时间为5000ms,增加深度拷贝(动态编译与自行赋值)。NET FrameWork使用需要额外安装Nuget包Microsoft.CodeAnalysis.CSharp.Scripting
     
CacheDb cache = new CacheDb(new DBSolution());实现持久化接口
     
cache.InitializeTable<T>(List<T> datas, Func<dynamic, object> getKey, bool forceOnly = true, bool UseDeepCopy = false, Func<T, T> DeepCopyFunc = null)初始化表结构
     
以下操作同步到数据库后更新内存

bool    cache.Table<T>().Add(T value, Action finishCallBack = null)
 
bool    cache.Table<T>().AddAll(IEnumerable<T> datas, Action finishCallBack = null);
 
bool    cache.Table<T>().Update(T obj, Action finishCallBack = null);
 
bool    cache.Table<T>().Delete(Expression<Func<T, bool>> ex, Action finishCallBack = null)
  
List<T> Where(Expression<Func<T, bool>> ex);

Product 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 was computed.  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. 
.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 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.21 1,045 7/20/2022
1.0.20 957 12/2/2021
1.0.19 1,704 12/1/2021
1.0.18 3,531 11/25/2021
1.0.17 950 8/10/2021
1.0.16 1,017 5/16/2021
1.0.15 910 5/14/2021
1.0.14 911 5/14/2021
1.0.11 990 5/12/2021
1.0.10 942 4/30/2021
1.0.9 922 4/29/2021
1.0.7 932 4/26/2021
1.0.6 921 4/26/2021
1.0.5 917 4/25/2021
1.0.4 984 4/21/2021
1.0.3 866 4/19/2021
1.0.2 905 4/13/2021
1.0.1 943 4/4/2021
1.0.0 912 4/4/2021