Beispiel #1
0
 public void HSet(string key, object value)
 {
     //using (var muxer = ConnectionMultiplexer.Connect(_redisCfg))
     {
         var db = Connection.GetDatabase();
         StackExchangeRedisExtensions.Set(db, key, value);
     }
 }
Beispiel #2
0
        public T GetHash <T>(string key)
        {
            //using (var muxer = ConnectionMultiplexer.Connect(_redisCfg))
            {
                var db   = Connection.GetDatabase();
                var data = StackExchangeRedisExtensions.Get <T>(db, key);

                return(data);
            }
        }