ISequenceSourceAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface ISequenceSourceAsync : IRequiresSchema
Methods
IncrementAsync(String, Int64, CancellationToken)
View Source
Declaration
Task<long> IncrementAsync(string key, long amount = 1L, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Int64>
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | amount |
System.Threading.CancellationToken | token |
ResetAsync(String, Int64, CancellationToken)
View Source
Declaration
Task ResetAsync(string key, long startingAt = 0L, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.String | key |
System.Int64 | startingAt |
System.Threading.CancellationToken | token |