public class MyEntity
{
public string Att1 { get; set; }
public DateTime Att2 { get; set; }
public KeyValuePair Att3 { get; set; }
public Dictionary Att4 { get; set; }
}
var list = new List<MyEntity>(100);
//put to cache .....
var cached = RedisClient.Get<List<MyEntity>>(key) ; // take 9745.9745 ms
var raw = RedisClient.Get(key); //get raw of the same key just take < 10 ms
我应该使用 Json.net 进行 json 序列化并改用 RedisClient.Get 吗?