2
// https://github.com/mythz/ServiceStack.Redis
3
// ServiceStack.Redis: ECMA CLI Binding to the Redis key-value storage system
6
// Demis Bellot (demis.bellot@gmail.com)
8
// Copyright 2010 Liquidbit Ltd.
10
// Licensed under the same terms of Redis and ServiceStack: new BSD license.
13
using System.Collections.Generic;
14
using ServiceStack.DesignPatterns.Model;
16
namespace ServiceStack.Redis
18
public interface IRedisSortedSet
19
: ICollection<string>, IHasStringId
21
List<string> GetAll();
22
List<string> GetRange(int startingRank, int endingRank);
23
List<string> GetRangeByScore(string fromStringScore, string toStringScore);
24
List<string> GetRangeByScore(string fromStringScore, string toStringScore, int? skip, int? take);
25
List<string> GetRangeByScore(double fromScore, double toScore);
26
List<string> GetRangeByScore(double fromScore, double toScore, int? skip, int? take);
27
void RemoveRange(int fromRank, int toRank);
28
void RemoveRangeByScore(double fromScore, double toScore);
29
void StoreFromIntersect(params IRedisSortedSet[] ofSets);
30
void StoreFromUnion(params IRedisSortedSet[] ofSets);
31
int GetItemIndex(string value);
32
double GetItemScore(string value);
33
void IncrementItemScore(string value, double incrementByScore);
34
string PopItemWithHighestScore();
35
string PopItemWithLowestScore();
b'\\ No newline at end of file'