IRedisSortedSet<T>
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisSortedSet<T> : ICollection<T>, IEnumerable<T>, IEnumerable, IHasStringId, IHasId<string>
Methods
Add(T, Double)
View Source
Declaration
void Add(T item, double score)
Parameters
Type | Name |
---|---|
<T> | item |
System.Double | score |
PopItemWithHighestScore()
View Source
Declaration
T PopItemWithHighestScore()
Returns
<T>
PopItemWithLowestScore()
View Source
Declaration
T PopItemWithLowestScore()
Returns
<T>
IncrementItem(T, Double)
View Source
Declaration
double IncrementItem(T item, double incrementBy)
Returns
System.Double
Parameters
Type | Name |
---|---|
<T> | item |
System.Double | incrementBy |
IndexOf(T)
View Source
Declaration
int IndexOf(T item)
Returns
System.Int32
Parameters
Type | Name |
---|---|
<T> | item |
IndexOfDescending(T)
View Source
Declaration
long IndexOfDescending(T item)
Returns
System.Int64
Parameters
Type | Name |
---|---|
<T> | item |
GetAll()
View Source
Declaration
List<T> GetAll()
Returns
System.Collections.Generic.List<<T>>
GetAllDescending()
View Source
Declaration
List<T> GetAllDescending()
Returns
System.Collections.Generic.List<<T>>
GetRange(Int32, Int32)
View Source
Declaration
List<T> GetRange(int fromRank, int toRank)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Int32 | fromRank |
System.Int32 | toRank |
GetRangeByLowestScore(Double, Double)
View Source
Declaration
List<T> GetRangeByLowestScore(double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
GetRangeByLowestScore(Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
Declaration
List<T> GetRangeByLowestScore(double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
GetRangeByHighestScore(Double, Double)
View Source
Declaration
List<T> GetRangeByHighestScore(double fromScore, double toScore)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
GetRangeByHighestScore(Double, Double, Nullable<Int32>, Nullable<Int32>)
View Source
Declaration
List<T> GetRangeByHighestScore(double fromScore, double toScore, int? skip, int? take)
Returns
System.Collections.Generic.List<<T>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
RemoveRange(Int32, Int32)
View Source
Declaration
long RemoveRange(int minRank, int maxRank)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.Int32 | minRank |
System.Int32 | maxRank |
RemoveRangeByScore(Double, Double)
View Source
Declaration
long RemoveRangeByScore(double fromScore, double toScore)
Returns
System.Int64
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
GetItemScore(T)
View Source
Declaration
double GetItemScore(T item)
Returns
System.Double
Parameters
Type | Name |
---|---|
<T> | item |
PopulateWithIntersectOf(IRedisSortedSet<T>[])
View Source
Declaration
long PopulateWithIntersectOf(params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSet`1[] | setIds |
PopulateWithIntersectOf(IRedisSortedSet<T>[], String[])
View Source
Declaration
long PopulateWithIntersectOf(IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSet`1[] | setIds |
System.String[] | args |
PopulateWithUnionOf(IRedisSortedSet<T>[])
View Source
Declaration
long PopulateWithUnionOf(params IRedisSortedSet<T>[] setIds)
Returns
System.Int64
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSet`1[] | setIds |
PopulateWithUnionOf(IRedisSortedSet<T>[], String[])
View Source
Declaration
long PopulateWithUnionOf(IRedisSortedSet<T>[] setIds, string[] args)
Returns
System.Int64
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSet`1[] | setIds |
System.String[] | args |