Efficient way of mapping data from Redis
问题 I'm playing around with Redis and with ServiceStack.Redis as a client. I initially used 'AutoMapper' to map the cached objects into domain objects, but this was pretty slow. Using someone else's example, I set up a custom mapper but this, too, is really slow. Is there something glaringly wrong with the below code? It's taking 4-5 seconds to map 1000 items from Redis. It's the 'GetByIds' client method that's introducing the lag, but I want an efficient way to store collections as lists of IDs