Esempio n. 1
0
        public bool Set <T>(IEnumerable <T> values, Func <T, string> getKey)
        {
            var set = new SetManyCommand <T>(values.Select(v => Tuple.Create(getKey(v), v)));

            return(set.Execute());
        }
Esempio n. 2
0
        public bool Set <T>(IDictionary <string, T> pairs)
        {
            var set = new SetManyCommand <T>(pairs.Select(p => Tuple.Create(p.Key, p.Value)));

            return(set.Execute());
        }