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