public static RedisStatus HMSet(string key, Dictionary <string, string> dict) { List <object> args = new List <object> { key }; args.AddRange(HashMapper.FromDict(dict)); return(new RedisStatus("HMSET", args.ToArray())); }
public static RedisStatus HMSet <T>(string key, T obj) where T : class { List <object> args = new List <object> { key }; args.AddRange(HashMapper.FromObject(obj)); return(new RedisStatus("HMSET", args.ToArray())); }