RedisHash.GetAll() throws expception:" System.Exception: 已到达字符串结尾"
AlexScofield opened this issue · comments
AlexScofield commented
1:
var hash = redis.GetDictionary("vm") as RedisHash<String, object>;
var idic = new VmModel { Id = Guid.NewGuid(), Name = "VM1" }.ToDictionary();
hash.HMSet(idic);
var dic = hash.GetAll(); //throw exception " System.Exception: 已到达字符串结尾".
2:
var hash=redis.GetDictionary("vm") as RedisHash<String, VmModel >;
这里的泛型参数不能是自定义的类吗,这么写hash会是null
microsofter commented
已经收到您的来信,我会尽快回复。
Stone commented
1,需要查一下日志
2,这个反序列化要指定类型