public static bool HashSet <T>(this ForksWrapper <StackExchangeRedisDataTypesEnum> wrapper, string key, KeyValuePair <string, T>[] hashFields) { return(wrapper.Set(StackExchangeRedisDataTypesEnum.Hash, hashFields.Select(x => Tuple.Create <string, T, object>(key, x.Value, new StackExchangeRedisHashParams { HashField = x.Key })))); }
public static bool StringSet <T>(this ForksWrapper <StackExchangeRedisDataTypesEnum> wrapper, KeyValuePair <string, T>[] values) { return(wrapper.Set(StackExchangeRedisDataTypesEnum.String, values.Select(x => Tuple.Create <string, T, object>(x.Key, x.Value, null)))); }
public static bool HashSet <T>(this ForksWrapper <StackExchangeRedisDataTypesEnum> wrapper, string key, string hashField, T value) { return(wrapper.Set(StackExchangeRedisDataTypesEnum.Hash, key, value, new StackExchangeRedisHashParams { HashField = hashField })); }
public static bool StringSet <T>(this ForksWrapper <StackExchangeRedisDataTypesEnum> wrapper, string key, T value) { return(wrapper.Set(StackExchangeRedisDataTypesEnum.String, key, value)); }