redis学习笔记2

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雪崩,

posted @ 2021-10-07 23:31  留下成长的足迹  阅读(16)  评论(0编辑  收藏  举报