The RedisCache implementation was incorrectly calling ToString() on the RedisValue before passing it on to the serializer for deserialization.
This worked fine for strings (which is the main type that the library has been used with), but failed with protobuf when GZip compression was used, as the result of the call to ToString() changed that value too much.
This PR removed those calls, adding a test for protobuf serialization/deserializtion.
The
RedisCache
implementation was incorrectly callingToString()
on theRedisValue
before passing it on to the serializer for deserialization.This worked fine for strings (which is the main type that the library has been used with), but failed with protobuf when GZip compression was used, as the result of the call to
ToString()
changed that value too much.This PR removed those calls, adding a test for protobuf serialization/deserializtion.