IRedisSortedSetAsync<T>
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisSortedSetAsync<T> : IHasStringId, IHasId<string>
Methods
CountAsync(CancellationToken)
View Source
Declaration
ValueTask<int> CountAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int32>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
AddAsync(T, Double, CancellationToken)
View Source
Declaration
ValueTask AddAsync(T item, double score, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | item |
System.Double | score |
System.Threading.CancellationToken | token |
PopItemWithHighestScoreAsync(CancellationToken)
View Source
Declaration
ValueTask<T> PopItemWithHighestScoreAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
PopItemWithLowestScoreAsync(CancellationToken)
View Source
Declaration
ValueTask<T> PopItemWithLowestScoreAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
IncrementItemAsync(T, Double, CancellationToken)
View Source
Declaration
ValueTask<double> IncrementItemAsync(T item, double incrementBy, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Double>
Parameters
Type | Name |
---|---|
<T> | item |
System.Double | incrementBy |
System.Threading.CancellationToken | token |
IndexOfAsync(T, CancellationToken)
View Source
Declaration
ValueTask<int> IndexOfAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int32>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
IndexOfDescendingAsync(T, CancellationToken)
View Source
Declaration
ValueTask<long> IndexOfDescendingAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
GetAllAsync(CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetAllDescendingAsync(CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetAllDescendingAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetRangeAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeAsync(int fromRank, int toRank, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Int32 | fromRank |
System.Int32 | toRank |
System.Threading.CancellationToken | token |
GetRangeByLowestScoreAsync(Double, Double, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeByLowestScoreAsync(double fromScore, double toScore, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Threading.CancellationToken | token |
GetRangeByLowestScoreAsync(Double, Double, Nullable<Int32>, Nullable<Int32>, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeByLowestScoreAsync(double fromScore, double toScore, int? skip, int? take, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
System.Threading.CancellationToken | token |
GetRangeByHighestScoreAsync(Double, Double, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeByHighestScoreAsync(double fromScore, double toScore, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Threading.CancellationToken | token |
GetRangeByHighestScoreAsync(Double, Double, Nullable<Int32>, Nullable<Int32>, CancellationToken)
View Source
Declaration
ValueTask<List<T>> GetRangeByHighestScoreAsync(double fromScore, double toScore, int? skip, int? take, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Nullable<System.Int32> | skip |
System.Nullable<System.Int32> | take |
System.Threading.CancellationToken | token |
RemoveRangeAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<long> RemoveRangeAsync(int minRank, int maxRank, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
System.Int32 | minRank |
System.Int32 | maxRank |
System.Threading.CancellationToken | token |
RemoveRangeByScoreAsync(Double, Double, CancellationToken)
View Source
Declaration
ValueTask<long> RemoveRangeByScoreAsync(double fromScore, double toScore, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
System.Double | fromScore |
System.Double | toScore |
System.Threading.CancellationToken | token |
GetItemScoreAsync(T, CancellationToken)
View Source
Declaration
ValueTask<double> GetItemScoreAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Double>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
PopulateWithIntersectOfAsync(IRedisSortedSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask<long> PopulateWithIntersectOfAsync(IRedisSortedSetAsync<T>[] setIds, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
System.Threading.CancellationToken | token |
PopulateWithIntersectOfAsync(IRedisSortedSetAsync<T>[])
View Source
Declaration
ValueTask<long> PopulateWithIntersectOfAsync(params IRedisSortedSetAsync<T>[] setIds)
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
PopulateWithIntersectOfAsync(IRedisSortedSetAsync<T>[], String[], CancellationToken)
View Source
Declaration
ValueTask<long> PopulateWithIntersectOfAsync(IRedisSortedSetAsync<T>[] setIds, string[] args, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
System.String[] | args |
System.Threading.CancellationToken | token |
PopulateWithUnionOfAsync(IRedisSortedSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask<long> PopulateWithUnionOfAsync(IRedisSortedSetAsync<T>[] setIds, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
System.Threading.CancellationToken | token |
PopulateWithUnionOfAsync(IRedisSortedSetAsync<T>[])
View Source
Declaration
ValueTask<long> PopulateWithUnionOfAsync(params IRedisSortedSetAsync<T>[] setIds)
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
PopulateWithUnionOfAsync(IRedisSortedSetAsync<T>[], String[], CancellationToken)
View Source
Declaration
ValueTask<long> PopulateWithUnionOfAsync(IRedisSortedSetAsync<T>[] setIds, string[] args, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSortedSetAsync`1[] | setIds |
System.String[] | args |
System.Threading.CancellationToken | token |
ClearAsync(CancellationToken)
View Source
Declaration
ValueTask ClearAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
ContainsAsync(T, CancellationToken)
View Source
Declaration
ValueTask<bool> ContainsAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
AddAsync(T, CancellationToken)
View Source
Declaration
ValueTask AddAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |
RemoveAsync(T, CancellationToken)
View Source
Declaration
ValueTask<bool> RemoveAsync(T item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<T> | item |
System.Threading.CancellationToken | token |