Redis Hash 基本操作

 

   public void StoreHash(string key,string value)
        {
            _redisClient.SetEntryInHash("test", key, value);
        }

        public void RemoveHash(string key)
        {
            _redisClient.RemoveEntryFromHash("test", key);
        }
         
        public List<string> AllHashValue()
        {
            return _redisClient.GetHashValues("test");
        }

        public string HashValue(string key)
        {
            return _redisClient.GetValueFromHash("test", key);            
        }

 

posted @ 2015-08-28 14:20  欣欣点灯  阅读(415)  评论(0编辑  收藏  举报