Skip to main content

ISequenceSource

Provide unique, incrementing sequences. Used in PocoDynamo.

Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface ISequenceSource : IRequiresSchema

Methods

Increment(String, Int64)

View Source
Declaration
long Increment(string key, long amount = 1L)
Returns

System.Int64

Parameters
TypeName
System.Stringkey
System.Int64amount

Reset(String, Int64)

View Source
Declaration
void Reset(string key, long startingAt = 0L)
Parameters
TypeName
System.Stringkey
System.Int64startingAt