void Main(string[] args) { string host = "127.0.0.1"; string elementKey = "testKey"; int port = 6379; RedisClient rc = new RedisClient(host, port, "foobared"); rc.Set(elementKey, "hello redis"); string res = rc.Get<string>(elementKey); Console.WriteLine(res); Console.ReadLine(); } Nosql 之 Redis(可做缓存 )标签: 本文系统来源:http://www.cnblogs.com/nele/p/5484202.html 【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!