Closed ashuthinks closed 8 years ago
Created redis list and setting key like following getting me error
public async Task MyMethod() { RedisList list = new RedisList(Settings, typeof(T).Name.ToString()); string mykey = "myId"; await list.LeftPush(mykey); getting following error :
Result Message: StackExchange.Redis.RedisServerException : ERR Operation against a key holding the wrong kind of value
This is because your key myId is not a list, you need to create it with LPUSH first. You'd have better luck asking for advice on StackOverflow or the redis mailing list.
myId
LPUSH
Created redis list and setting key like following getting me error
public async Task MyMethod()
{
RedisList list = new RedisList(Settings, typeof(T).Name.ToString());
string mykey = "myId";
await list.LeftPush(mykey);
getting following error :
Result Message: StackExchange.Redis.RedisServerException : ERR Operation against a key holding the wrong kind of value