thepirat000 / CachingFramework.Redis

Distributed caching based on StackExchange.Redis and Redis. Includes support for tagging and is cluster-compatible.
Other
289 stars 52 forks source link

while using SetHashed() method, and inserting null value, getting error "Object Graph cannot be null". Does redis does not support null values. How to handle them. #38

Closed PrachiChoudhary closed 6 years ago

thepirat000 commented 6 years ago

This works with the default configuration:

var x = new CachingFramework.Redis.Context();
await x.Cache.SetHashedAsync<string>("mykey", "field1", null);

Can you share a sample code that fails? Which serialization method do you use?