Reputation: 5239
I'm using StackExchange.Redis as my redis client and it works nicely. I store a number of values in a hash and currently do a manual mapping once I've got the the hash values out of the database
var values = database.HashGetAll(myKey);
Does anyone have a nice way deserializing/mapping an array of HashEntry[]
into a poco?
Upvotes: 0
Views: 1324
Reputation: 1062755
None such is built in - I'm kinda of the opinion that libraries should be targeted - however, it would be pretty easy to hook something over the top using reflection or meta - programming perhaps with a tool like fastmember.
I'm not completely opposed to adding something inbuilt, though :)
Upvotes: 3