TWCore.Cache 3.1.0-beta1

This is a prerelease version of TWCore.Cache.
There is a newer version of this package available.
See the version list below for details.
dotnet add package TWCore.Cache --version 3.1.0-beta1
                    
NuGet\Install-Package TWCore.Cache -Version 3.1.0-beta1
                    
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="TWCore.Cache" Version="3.1.0-beta1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TWCore.Cache" Version="3.1.0-beta1" />
                    
Directory.Packages.props
<PackageReference Include="TWCore.Cache" />
                    
Project file
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 TWCore.Cache --version 3.1.0-beta1
                    
#r "nuget: TWCore.Cache, 3.1.0-beta1"
                    
#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 TWCore.Cache@3.1.0-beta1
                    
#: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=TWCore.Cache&version=3.1.0-beta1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TWCore.Cache&version=3.1.0-beta1&prerelease
                    
Install as a Cake Tool

<img src="https://raw.githubusercontent.com/tonyredondo/TWCore2/master/doc/icon.png" alt="Potato" width="45px" height="45px" /> TWCore 3.1

Build status Nuget

A multipurpose framework library used to create microservices solutions on multiple platforms (runs on windows, linux, linux-arm [raspberry pi], and osx).

Compatible with

  • .NET Framework 4.7.2
  • netstandard2.0
  • netcoreapp2.1
  • netcoreapp2.2
  • netcoreapp3.1
  • net5.0
  • net6.0
  • net7.0
  • net8.0

Advantages

  • Easy development of microservices: With fewer code you can subscribe to a message broker and start to process messages as pub/sub or RPC architecture.
  • Completely agnostic and loosely coupled: All subsystems of the framework are registered with a dependency injector engine, so using only the configurations files you can switch between Messages brokers, Serialization formats, Rpc transports, Stream compressors, and many more.
  • Integrated Log, Trace, and Status engines: you can log on different storage, also use differents trace storages and you have an integrated status library to check your service health.
  • A bot subsystem to create bot services on Telegram and Slack
  • Extensions methods for objects, strings, and IEnumerables.
  • Aspnet Core object viewer and compiler developer tool.
Supported log storages
  • Console
  • File
  • Html File
  • MessageBroker
  • ElasticSearch
  • Mail
Supported trace storages
  • File
  • MessageBroker
Supported compressors
  • Gzip
  • Deflate
  • Brotli
Supported messages brokers
  • RabbitMQ
  • NATS
  • NSQ
  • Kafka
  • Redis (Pub/Sub)
Supported key/value cache storages
  • Custom TWCore
  • Redis
Supported bot connectors
  • Slack
  • Telegram
Supported serializers
  • Newtonsoft JsonNet
  • XmlSerializer
  • BinaryFormatter
  • Utf8Json
  • MsgPack
  • NSerializer (Custom binary serializer with object reference graph support and cyclic reference)
  • RawSerializer (Like NSerializer but without internal caching, faster, but serialized objects are bigger in bytes size.)

Simple Object Serializer Benchmark

BenchmarkDotNet=v0.11.3, OS=Windows 10.0.17134.523 (1803/April2018Update/Redstone4)\
Intel Core i7-4770R CPU 3.20GHz (Haswell), 1 CPU, 8 logical and 4 physical cores\
.NET Core SDK=2.2.101\
  [Host] : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT\
  Core   : .NET Core 2.2.0 (CoreCLR 4.6.27110.04, CoreFX 4.6.27110.04), 64bit RyuJIT\
Job=Core  Runtime=Core
Method N Mean Error StdDev Min Max Gen 0/1k Op Gen 1/1k Op Gen 2/1k Op Allocated Memory/Op
NewtonsoftJsonSerializerToStream 1 42.935 us 0.4296 us 0.4019 us 42.123 us 43.608 us 3.6621 0.1831 - 23296 B
NewtonsoftJsonDeserializerFromStream 1 78.432 us 1.5565 us 1.4560 us 76.154 us 80.546 us 3.5400 0.8545 - 22960 B
XmlSerializerToStream 1 45.512 us 0.3721 us 0.3299 us 44.858 us 46.154 us 1.8921 - - 12224 B
XmlDeserializerFromStream 1 91.809 us 1.4537 us 1.3598 us 89.874 us 94.327 us 4.5166 0.3662 - 28608 B
BinaryFormatterSerializerToStream 1 53.381 us 0.5491 us 0.5137 us 52.418 us 54.022 us 2.5635 - - 16504 B
BinaryFormatterDeserializerFromStream 1 44.802 us 0.5174 us 0.4840 us 43.914 us 45.613 us 3.6011 0.4883 - 22720 B
Utf8JsonSerializerToStream 1 7.609 us 0.1364 us 0.1276 us 7.429 us 7.832 us - - - -
Utf8JsonDeserializerFromStream 1 20.249 us 0.2015 us 0.1885 us 20.009 us 20.641 us 0.9460 0.1831 - 6016 B
MessagePackSerializerToStream 1 7.777 us 0.0682 us 0.0638 us 7.658 us 7.900 us - - - 96 B
MessagePackDeserializerFromStream 1 11.087 us 0.1592 us 0.1489 us 10.795 us 11.419 us 1.3123 0.3204 - 8272 B
NSerializerToStream 1 7.823 us 0.1440 us 0.1347 us 7.607 us 8.051 us - - - -
NDeserializerFromStream 1 7.301 us 0.0702 us 0.0657 us 7.106 us 7.405 us 0.4425 0.0458 - 2800 B
RawSerializerToStream 1 6.574 us 0.1298 us 0.1275 us 6.375 us 6.781 us - - - -
RawDeserializerFromStream 1 7.837 us 0.0655 us 0.0613 us 7.748 us 7.937 us 0.5569 0.0763 - 3520 B

<img src="https://raw.githubusercontent.com/tonyredondo/TWCore2/master/doc/serializer-deserializer1.png" alt="Serializer Graph" />

Created by Daniel Redondo

Powered By

<img src="https://raw.githubusercontent.com/tonyredondo/TWCore2/master/doc/rider.jpg" alt="Rider" width="50px" height="50px" /><img src="https://raw.githubusercontent.com/tonyredondo/TWCore2/master/doc/dotTrace.png" alt="dotTrace" width="50px" height="50px" /><img src="https://raw.githubusercontent.com/tonyredondo/TWCore2/master/doc/dotMemory.png" alt="dotMemory" width="50px" height="50px" />

Thanks to @jetbrains for helping on this development with the licenses for Rider, dotTrace and dotMemory

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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 is compatible.  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 netcoreapp2.0 was computed.  netcoreapp2.1 is compatible.  netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.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 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on TWCore.Cache:

Package Downloads
TWCore.Cache.Client

TWCore Framework. A multipurpose framework library for .net core

TWCore.Cache.Server

TWCore Framework. A multipurpose framework library for .net core

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.0 512 10/22/2023
3.1.0-beta2 303 10/20/2023
3.1.0-beta1 312 10/19/2023
3.0.0-beta5 907 9/8/2019
3.0.0-beta4 825 9/8/2019
3.0.0-beta3 837 8/20/2019
3.0.0-beta2 845 8/18/2019
3.0.0-beta1 838 8/18/2019
2.1.181 1,470 7/24/2019
2.1.181-beta5 913 7/16/2019
2.1.181-beta4 893 5/10/2019
2.1.181-beta3 943 3/16/2019
2.1.181-beta2 901 3/8/2019
2.1.181-beta 905 3/3/2019
2.1.180 1,456 3/1/2019
2.1.180-rc1 924 2/28/2019
2.1.180-beta9 944 2/14/2019
2.1.180-beta8 992 2/14/2019
2.1.180-beta7 1,016 2/8/2019
2.1.180-beta6 986 2/7/2019
2.1.180-beta5 1,005 2/6/2019
2.1.180-beta4 998 2/5/2019
2.1.180-beta3 1,008 2/4/2019
2.1.180-beta2 1,007 2/4/2019
2.1.180-beta1 955 2/4/2019
2.1.180-alpha8 981 1/30/2019
2.1.180-alpha7 951 1/22/2019
2.1.180-alpha6 987 1/21/2019
2.1.180-alpha5 945 1/18/2019
2.1.180-alpha4 1,058 1/17/2019
2.1.180-alpha3 993 1/16/2019
2.1.180-alpha2 954 1/16/2019
2.1.180-alpha1 978 1/15/2019
2.1.179 1,510 1/9/2019
2.1.179-beta9 965 1/3/2019
2.1.179-beta8 1,002 1/2/2019
2.1.179-beta7 992 1/2/2019
2.1.179-beta6 955 12/21/2018
2.1.179-beta5 955 12/19/2018
2.1.179-beta4 946 12/19/2018
2.1.179-beta3 934 12/19/2018
2.1.179-beta2 996 12/18/2018
2.1.179-beta12 976 1/8/2019
2.1.179-beta11 979 1/7/2019
2.1.179-beta10 983 1/4/2019
2.1.179-beta1 953 12/18/2018
2.1.179-alpha9 926 12/18/2018
2.1.179-alpha8 991 11/28/2018
2.1.179-alpha7 1,039 11/22/2018
2.1.179-alpha6 1,005 11/20/2018
2.1.179-alpha5 964 11/20/2018
2.1.179-alpha4 993 11/20/2018
2.1.179-alpha3 959 11/19/2018
2.1.179-alpha2 992 11/16/2018
2.1.179-alpha 1,004 11/16/2018
2.1.178 1,589 11/6/2018
2.1.178-beta2 991 11/6/2018
2.1.178-beta1 1,010 10/29/2018
2.1.178-alpha7 1,016 10/22/2018
2.1.178-alpha6 1,068 10/19/2018
2.1.178-alpha5 1,011 10/17/2018
2.1.178-alpha4 1,081 10/14/2018
2.1.178-alpha3 1,035 10/13/2018
2.1.178-alpha2 1,074 10/9/2018
2.1.178-alpha 1,010 10/9/2018
2.1.177 1,356 9/27/2018
2.1.177-rc4 945 9/26/2018
2.1.177-rc3 968 9/26/2018
2.1.177-rc2 942 9/26/2018
2.1.177-rc1 967 9/25/2018
2.1.177-beta 969 9/25/2018
2.1.177-alpha 922 9/24/2018
2.1.176 1,302 9/20/2018
2.1.175 1,297 9/19/2018
2.1.174 1,302 9/16/2018
2.1.173 1,271 9/12/2018
2.1.173-beta 932 9/12/2018
2.1.172 1,317 9/11/2018
2.1.171 1,327 8/27/2018
2.1.171-rc1 930 8/27/2018
2.1.171-beta 946 8/27/2018
2.1.170 1,417 8/15/2018
2.1.169 1,353 8/14/2018
2.1.168 1,311 8/10/2018
2.1.167 1,433 8/9/2018
2.1.166 1,462 8/9/2018
2.1.165 1,437 8/9/2018
2.1.164 1,437 8/8/2018
2.1.163 1,437 8/8/2018
2.1.162 1,500 8/8/2018
2.1.161 1,424 8/8/2018
2.1.160 1,494 8/7/2018
2.1.159 1,438 8/3/2018
2.1.158 1,459 8/2/2018
2.1.157 1,461 8/1/2018
2.1.156 1,473 7/30/2018
2.1.155 1,491 7/29/2018
2.1.154 1,454 7/19/2018
2.1.153 1,669 7/12/2018
2.1.152 1,696 7/11/2018
2.1.151 1,484 7/11/2018
2.1.150 1,679 7/11/2018
2.1.149 1,705 7/10/2018
2.1.148 1,638 7/4/2018
2.1.147 1,643 7/3/2018
2.1.146 1,509 7/1/2018
2.1.145 1,449 7/1/2018
2.1.144 1,444 6/28/2018
2.1.143 1,421 6/25/2018
2.1.142 1,685 6/19/2018
2.1.141 1,543 6/19/2018
2.1.140 1,514 6/18/2018
2.0.149 1,783 7/10/2018
2.0.148 1,553 7/4/2018
2.0.147 1,531 7/3/2018
2.0.146 1,531 7/1/2018
2.0.145 1,567 7/1/2018
2.0.144 1,698 6/28/2018
2.0.143 1,581 6/25/2018
2.0.142 1,525 6/19/2018
2.0.141 1,727 6/19/2018
2.0.140 1,714 6/18/2018
2.0.139 1,698 6/18/2018
2.0.138 1,529 6/15/2018
2.0.137 1,697 6/15/2018
2.0.136 1,739 6/12/2018
2.0.135 1,737 6/11/2018
2.0.134 1,534 6/11/2018
2.0.133 1,566 6/11/2018
0.2.132 1,604 5/25/2018
0.2.131 1,749 5/21/2018
0.2.130 1,578 5/20/2018
0.2.129 1,719 5/20/2018
0.2.128 1,752 5/14/2018
0.2.127 1,765 5/11/2018
0.2.126 1,744 5/10/2018
0.2.125 1,769 5/8/2018
0.2.124 1,830 4/30/2018
0.2.123 1,812 4/29/2018
0.2.122 1,904 4/27/2018
0.2.121 1,720 4/26/2018
0.2.120 1,537 4/25/2018
0.2.119 1,775 4/25/2018
0.2.118 1,816 4/25/2018
0.2.117 1,746 4/24/2018
0.2.116 1,800 4/24/2018
0.2.115 1,928 4/19/2018
0.2.114 1,824 4/19/2018
0.2.113 1,780 4/19/2018
0.2.112 1,708 4/18/2018
0.2.111 1,857 4/18/2018
0.2.110 1,799 4/18/2018
0.2.109 1,581 4/17/2018
0.2.108 1,831 4/17/2018
0.2.107 1,821 4/9/2018
0.2.106 1,592 4/6/2018
0.2.105 1,787 4/3/2018
0.2.104 1,749 4/2/2018
0.2.103 1,838 3/28/2018
0.2.102 1,812 3/28/2018
0.2.101 1,778 3/28/2018
0.2.100 1,904 3/27/2018
0.2.99 1,886 3/24/2018
0.2.98 1,616 3/23/2018
0.2.97 1,774 3/19/2018
0.2.96 1,756 3/16/2018
0.2.95 1,798 3/15/2018
0.2.94 1,793 3/13/2018
0.2.93 1,791 3/12/2018
0.2.92 1,709 3/12/2018
0.2.91 1,613 3/12/2018
0.2.90 1,562 3/11/2018
0.2.89 1,731 3/6/2018
0.2.88 1,815 3/2/2018
0.2.87 1,818 3/1/2018
0.2.86 1,799 2/28/2018
0.2.85 1,786 2/28/2018
0.2.84 1,777 2/28/2018
0.2.83 1,757 2/27/2018
0.2.82 1,798 2/26/2018
0.2.81 1,807 2/23/2018
0.2.80 1,595 2/22/2018
0.2.79 1,533 2/21/2018
0.2.78 1,806 2/16/2018
0.2.77 1,851 2/14/2018
0.2.76 1,839 2/14/2018
0.2.75 1,820 2/9/2018
0.2.74 1,811 2/9/2018
0.2.73 1,771 2/1/2018
0.2.72 1,720 1/31/2018
0.2.71 1,776 1/30/2018
0.2.70 1,822 1/29/2018
0.2.69 1,756 1/26/2018
0.2.68 1,780 1/23/2018
0.2.67 1,893 1/22/2018
0.2.66 1,794 1/22/2018
0.2.65 1,802 1/19/2018
0.2.64 1,625 1/17/2018
0.2.63 1,891 1/16/2018
0.2.62 1,875 1/15/2018
0.2.61 1,640 12/18/2017
0.2.60 1,590 12/6/2017
0.2.59 1,593 12/5/2017
0.2.58 1,599 12/4/2017
0.2.57 1,563 12/1/2017
0.2.56 1,557 11/30/2017
0.2.55 1,592 11/28/2017
0.2.54 1,590 11/28/2017
0.2.53 1,519 11/28/2017
0.2.52 1,556 11/26/2017
0.2.51 1,587 11/24/2017
0.2.50 1,599 11/23/2017
0.2.49 1,585 11/17/2017
0.2.48 1,618 11/17/2017
0.2.47 1,524 11/16/2017
0.2.46 1,563 11/15/2017
0.2.45 1,594 11/13/2017
0.2.44 1,609 11/7/2017
0.2.43 1,558 11/7/2017
0.2.42 1,606 11/6/2017
0.2.41 1,589 10/31/2017
0.2.40 1,620 10/31/2017
0.2.39 1,544 10/26/2017
0.2.38 1,549 10/26/2017
0.2.37 1,627 10/25/2017
0.2.36 1,576 10/23/2017
0.2.35 1,586 10/20/2017
0.2.34 1,555 10/13/2017
0.2.33 1,555 10/10/2017
0.2.32 1,634 10/9/2017
0.2.31 1,570 10/7/2017
0.2.30 1,615 10/6/2017
0.2.29 1,652 9/29/2017
0.2.28 1,624 9/27/2017
0.2.27 1,590 9/25/2017
0.2.26 1,597 9/22/2017
0.2.25 1,600 9/20/2017
0.2.24 1,568 9/19/2017
0.2.23 1,614 9/13/2017
0.2.22 1,606 9/13/2017
0.2.21 1,688 9/13/2017
0.2.20 1,647 9/13/2017
0.2.19 1,628 9/12/2017
0.2.18 1,573 9/12/2017
0.2.17 1,649 9/11/2017
0.2.16 1,553 9/11/2017
0.2.15 1,634 9/8/2017
0.2.13 1,180 9/8/2017
0.2.10 1,854 9/8/2017
0.2.9 1,630 8/29/2017
0.2.6 1,623 8/25/2017
0.2.5 1,598 8/16/2017
0.2.1-alpha 1,121 8/16/2017
0.2.0-alpha 1,195 8/7/2017