【发布时间】:2015-11-27 21:53:39
【问题描述】:
创建了 redis 列表和设置键,就像下面让我出错
public async Task MyMethod<T>()
{
//if i'm doing following it is working
string listname = "listname";
string listkey = "key";
RedisList<string> demodemo = new RedisList<string>(Settings, listname);
await demodemo.LeftPush(listkey);
//but i want to do it like below it is thoughing exception
RedisList<string> list = new RedisList<string>(Settings, typeof(T).Name.ToString());
string mykey = "myId";
await list.LeftPush(mykey);
出现以下错误:
结果消息:StackExchange.Redis.RedisServerException:ERR 对持有错误值的键进行操作
【问题讨论】:
标签: c# azure caching redis stackexchange.redis