MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.33k stars 457 forks source link

Support compression after serialization, fix #173 #319

Open menishmueli opened 3 years ago

menishmueli commented 3 years ago

Add compress flag to configuration to support compressing the binary content after serialization

compression was available for json as seperate serializer, but in order to support compression for additional serializers (like protobuf that was requested in #173) it should be a available as a seperate flag

In order to maintain backward compatibility for old configuration file when choosing the json gz serializer option it's using the regular json serializer and use turn on the compression flag

It should be considered to make this change a breaking change

This is my first contribution to this repo and it was a relatively a big assignment because of the additional configuration flag, so I probably missed something - please let me know!