How to get value from Redis server

Jun 24, 2014 at 12:19 PM
var redis = new RedisDataAccessProvider();

redis.SendCommand(RedisCommand.SET, "mykey", "myvalue");
redis.WaitComplete();

from the above code we can able to set value .. pls help me how to get value using "KEY"
Sep 29, 2014 at 3:20 PM
Edited Sep 29, 2014 at 3:22 PM
Here is a code snippet that will allow you to read back "myvalue" from redis using "mykey":
 redis.SendCommand(RedisCommand.SET, "mykey", "myvalue");
 redis.WaitComplete();

//read the value as string using key       
var myValueFromRedis=redis.Strings["mykey"].Get();
...took me longer than I would have liked to figure that out.