コード例 #1
0
        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()));
        }
コード例 #2
0
        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()));
        }