Example #1
0
 public Task <long> SortedSetRemoveRangeByScoreAsync(string key, double start, double stop, RedisExclude exclude = RedisExclude.None)
 {
     return(Db.SortedSetRemoveRangeByScoreAsync(key, start, stop, exclude.ToExclude()));
 }
Example #2
0
 public Task <long> SortedSetRemoveRangeByValueAsync(string key, string min, string max, RedisExclude exclude = RedisExclude.None)
 {
     return(Db.SortedSetRemoveRangeByValueAsync(key, min, max, exclude.ToExclude()));
 }
Example #3
0
 public string[] SortedSetRangeByValue(string key, string min = null, string max = null, RedisExclude exclude = RedisExclude.None, long skip = 0, long take = -1)
 {
     return(Db.SortedSetRangeByValue(key, min, max, exclude.ToExclude(), skip, take).ToStringArray());
 }
Example #4
0
 public async Task <string[]> SortedSetRangeByValueAsync(string key, string min = null, string max = null, RedisExclude exclude = RedisExclude.None, long skip = 0, long take = -1)
 {
     return((await Db.SortedSetRangeByValueAsync(key, min, max, exclude.ToExclude(), skip, take)).ToStringArray());
 }
Example #5
0
 public async Task <KeyValuePair <string, double>[]> SortedSetRangeByScoreWithScoresAsync(string key, double start = double.NegativeInfinity, double stop = double.PositiveInfinity, RedisExclude exclude = RedisExclude.None, RedisOrder order = RedisOrder.Ascending, long skip = 0, long take = -1)
 {
     return((await Db.SortedSetRangeByScoreWithScoresAsync(key, start, stop, exclude.ToExclude(), order.ToOrder(), skip, take)).ToSortedPairs());
 }
Example #6
0
 public string[] SortedSetRangeByScore(string key, double start = double.NegativeInfinity, double stop = double.PositiveInfinity, RedisExclude exclude = RedisExclude.None, RedisOrder order = RedisOrder.Ascending, long skip = 0, long take = -1)
 {
     return(Db.SortedSetRangeByScore(key, start, stop, exclude.ToExclude(), order.ToOrder(), skip, take).ToStringArray());
 }
Example #7
0
 public long SortedSetLengthByValue(string key, string min, string max, RedisExclude exclude = RedisExclude.None)
 {
     return(Db.SortedSetLengthByValue(key, min, max, exclude.ToExclude()));
 }
Example #8
0
 public Task <long> SortedSetLengthAsync(string key, double min = double.NegativeInfinity, double max = double.PositiveInfinity, RedisExclude exclude = RedisExclude.None)
 {
     return(Db.SortedSetLengthAsync(key, min, max, exclude.ToExclude()));
 }
 internal static Exclude ToExclude(this RedisExclude exclude)
 {
     return((Exclude)(int)exclude);
 }