1.string类型
using (RedisClient client = new RedisClient("192.168.0.107", 6379 )) { // client.FlushDb(); //client.FlushAll(); var aValue = client.Get<string>("a"); client.Set<string>("name", "wangcong"); var name = client.Get<string>("name"); client.Set<string>("name", "wangconggood",DateTime.Now.AddSeconds(5)); }
2.Hash类型
3.List类型
4.Set类型
5.zSet类型
6雪崩,