Example #1
0
 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
     }))));
 }
Example #2
0
 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))));
 }
Example #3
0
 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
     }));
 }
Example #4
0
 public static bool StringSet <T>(this ForksWrapper <StackExchangeRedisDataTypesEnum> wrapper, string key, T value)
 {
     return(wrapper.Set(StackExchangeRedisDataTypesEnum.String, key, value));
 }