Skip to main content

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
TypeName
System.Stringkey
System.Int64amount
System.Threading.CancellationTokentoken

ResetAsync(String, Int64, CancellationToken)

View Source
Declaration
Task ResetAsync(string key, long startingAt = 0L, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringkey
System.Int64startingAt
System.Threading.CancellationTokentoken