IRedisSetAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisSetAsync : 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 |
GetRangeFromSortedSetAsync(Int32, Int32, CancellationToken)
View Source
Declaration
ValueTask<List<string>> GetRangeFromSortedSetAsync(int startingFrom, int endingAt, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.List<System.String>>
Parameters
Type | Name |
---|---|
System.Int32 | startingFrom |
System.Int32 | endingAt |
System.Threading.CancellationToken | token |
GetAllAsync(CancellationToken)
View Source
Declaration
ValueTask<HashSet<string>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
PopAsync(CancellationToken)
View Source
Declaration
ValueTask<string> PopAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.String>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
MoveAsync(String, IRedisSetAsync, CancellationToken)
View Source
Declaration
ValueTask MoveAsync(string value, IRedisSetAsync toSet, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.String | value |
ServiceStack.Redis.IRedisSetAsync | toSet |
System.Threading.CancellationToken | token |
IntersectAsync(IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask<HashSet<string>> IntersectAsync(IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
IntersectAsync(IRedisSetAsync[])
View Source
Declaration
ValueTask<HashSet<string>> IntersectAsync(params IRedisSetAsync[] withSets)
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
StoreIntersectAsync(IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask StoreIntersectAsync(IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
StoreIntersectAsync(IRedisSetAsync[])
View Source
Declaration
ValueTask StoreIntersectAsync(params IRedisSetAsync[] withSets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
UnionAsync(IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask<HashSet<string>> UnionAsync(IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
UnionAsync(IRedisSetAsync[])
View Source
Declaration
ValueTask<HashSet<string>> UnionAsync(params IRedisSetAsync[] withSets)
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
StoreUnionAsync(IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask StoreUnionAsync(IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
StoreUnionAsync(IRedisSetAsync[])
View Source
Declaration
ValueTask StoreUnionAsync(params IRedisSetAsync[] withSets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
DiffAsync(IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask<HashSet<string>> DiffAsync(IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.HashSet<System.String>>
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
StoreDiffAsync(IRedisSetAsync, IRedisSetAsync[], CancellationToken)
View Source
Declaration
ValueTask StoreDiffAsync(IRedisSetAsync fromSet, IRedisSetAsync[] withSets, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync | fromSet |
ServiceStack.Redis.IRedisSetAsync[] | withSets |
System.Threading.CancellationToken | token |
StoreDiffAsync(IRedisSetAsync, IRedisSetAsync[])
View Source
Declaration
ValueTask StoreDiffAsync(IRedisSetAsync fromSet, params IRedisSetAsync[] withSets)
Returns
ValueTask
Parameters
Type | Name |
---|---|
ServiceStack.Redis.IRedisSetAsync | fromSet |
ServiceStack.Redis.IRedisSetAsync[] | withSets |
GetRandomEntryAsync(CancellationToken)
View Source
Declaration
ValueTask<string> GetRandomEntryAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.String>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
RemoveAsync(String, CancellationToken)
View Source
Declaration
ValueTask<bool> RemoveAsync(string item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | item |
System.Threading.CancellationToken | token |
AddAsync(String, CancellationToken)
View Source
Declaration
ValueTask AddAsync(string item, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.String | item |
System.Threading.CancellationToken | token |
ContainsAsync(String, CancellationToken)
View Source
Declaration
ValueTask<bool> ContainsAsync(string item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | item |
System.Threading.CancellationToken | token |
ClearAsync(CancellationToken)
View Source
Declaration
ValueTask ClearAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |