public void HSet(string key, object value) { //using (var muxer = ConnectionMultiplexer.Connect(_redisCfg)) { var db = Connection.GetDatabase(); StackExchangeRedisExtensions.Set(db, key, value); } }
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); } }