public void SortedSetGetRankForValue(string key, long?value, Enums.SortOrders sortOrder = SortOrders.Ascending) { Record(this.contextTransaction.SortedSetRankAsync(Key(key), value, sortOrder.ToRedisOrder())); }
public void SortedSetGetRangeByScoreBool(string key, double start = double.NegativeInfinity, double stop = double.PositiveInfinity, Enums.SortOrders sortOrder = SortOrders.Ascending, long skip = 0, long take = -1) { var t = this.contextTransaction.SortedSetRangeByScoreWithScoresAsync(Key(key), start: start, stop: stop, exclude: Exclude.None, order: sortOrder.ToRedisOrder(), skip: skip, take: take, flags: commandFlags); Record(t.ContinueWith((sse) => sse.Result.Select((s) => s.Element.ToBoolDefault()).ToArray())); }
public void SortedSetGetRankForValue(string key, bool?value, Enums.SortOrders sortOrder = SortOrders.Ascending) { var intValue = value.HasValue ? (value.Value ? -1 : 0) : (int?)null; Record(this.contextTransaction.SortedSetRankAsync(Key(key), intValue, sortOrder.ToRedisOrder())); }
public void SortedSetGetRangeByRankByteArray(string key, long rangeStart = 0, long rangeEnd = -1, Enums.SortOrders sortOrder = SortOrders.Ascending) { var t = this.contextTransaction.SortedSetRangeByRankWithScoresAsync(Key(key), start: rangeStart, stop: rangeEnd, order: sortOrder.ToRedisOrder(), flags: commandFlags); Record(t.ContinueWith((sse) => sse.Result.Select((s) => (byte[])s.Element).ToArray())); }