craigwardman / ChunkingRedisClient

A C# library which implements various wrappers around the StackExchange.Redis client, specifically using Newtonsoft.Json serialisation; Such as streamed reading/writing and sliding expiration.
MIT License
2 stars 1 forks source link

Had to remove GenericKeygen due to the issue I described in the issue #1 #2

Closed craigwardman closed 5 years ago

craigwardman commented 5 years ago

Removing the GenericKeygen since GetHashCode isn't reliable as a cache key. Considered a more intrusive way of providing "generic keys" such as an interface, but this would litter the existing generics with constaints and would be intrusive to implementor's classes.

Consumers should simply implement their own key gen classes and inject it accordingly.