IRedisSetAsync<T>
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisSetAsync<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 |
SortAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<List<T>> SortAsync(int startingFrom, int endingAt, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<<T>>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
System.Threading.CancellationToken | token |
GetAllAsync(CancellationToken)
View Source
Declaration
ValueTask<HashSet<T>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.HashSet<<T>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
PopRandomItemAsync(CancellationToken)
View Source
Declaration
ValueTask<T> PopRandomItemAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetRandomItemAsync(CancellationToken)
View Source
Declaration
ValueTask<T> GetRandomItemAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<<T>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
MoveToAsync(T, IRedisSetAsync<T>, CancellationToken)
View Source
Declaration
ValueTask MoveToAsync(T item, IRedisSetAsync<T> toSet, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<T> | item |
ServiceStack.Redis.Generic.IRedisSetAsync<T> | toSet |
System.Threading.CancellationToken | token |
PopulateWithIntersectOfAsync(IRedisSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask PopulateWithIntersectOfAsync(IRedisSetAsync<T>[] sets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | sets |
System.Threading.CancellationToken | token |
PopulateWithIntersectOfAsync(IRedisSetAsync<T>[])
View Source
Declaration
ValueTask PopulateWithIntersectOfAsync(params IRedisSetAsync<T>[] sets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | sets |
PopulateWithUnionOfAsync(IRedisSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask PopulateWithUnionOfAsync(IRedisSetAsync<T>[] sets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | sets |
System.Threading.CancellationToken | token |
PopulateWithUnionOfAsync(IRedisSetAsync<T>[])
View Source
Declaration
ValueTask PopulateWithUnionOfAsync(params IRedisSetAsync<T>[] sets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | sets |
GetDifferencesAsync(IRedisSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask GetDifferencesAsync(IRedisSetAsync<T>[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | withSets |
System.Threading.CancellationToken | token |
GetDifferencesAsync(IRedisSetAsync<T>[])
View Source
Declaration
ValueTask GetDifferencesAsync(params IRedisSetAsync<T>[] withSets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | withSets |
PopulateWithDifferencesOfAsync(IRedisSetAsync<T>, IRedisSetAsync<T>[], CancellationToken)
View Source
Declaration
ValueTask PopulateWithDifferencesOfAsync(IRedisSetAsync<T> fromSet, IRedisSetAsync<T>[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync<T> | fromSet |
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | withSets |
System.Threading.CancellationToken | token |
PopulateWithDifferencesOfAsync(IRedisSetAsync<T>, IRedisSetAsync<T>[])
View Source
Declaration
ValueTask PopulateWithDifferencesOfAsync(IRedisSetAsync<T> fromSet, params IRedisSetAsync<T>[] withSets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.Generic.IRedisSetAsync<T> | fromSet |
ServiceStack.Redis.Generic.IRedisSetAsync`1[] | withSets |
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 |
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 |
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 |