Documentation ¶
Index ¶
Constants ¶
View Source
const ( RecordKindSet RecordKind = "SET" RecordKindDelete = "DEL" RecordKindCommit = "COMMIT" )
Variables ¶
View Source
var ContextKeyTransactionID = contextKey{"TXID"}
ContextKeyTransactionID is a context key for the transaction ID.
Functions ¶
This section is empty.
Types ¶
type RecordKind ¶
type RecordKind string
type Store ¶
type Store interface { Set(ctx context.Context, key, value string) error Get(ctx context.Context, key string) (string, error) Delete(ctx context.Context, key string) error Keys(ctx context.Context) ([]string, error) Release(ctx context.Context) }
func FromPersistence ¶
func NewInMemoryStore ¶
func NewInMemoryStore() Store
func WithPersistence ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.