creator

package
v0.0.0-...-f584327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator interface {

	// CreateWithTTL creates a kv pair with ttl in kv storage
	CreateWithTTL(ctx context.Context, key []byte, value []byte, revision uint64, ttl int64) (err error)

	// Create creates a kv pair in kv storage
	Create(ctx context.Context, key []byte, value []byte, revision uint64) (err error)
}

Creator control creation and gc of kv with ttl

func NewNaiveCreator

func NewNaiveCreator(store storage.KvStorage, coder coder.Coder) Creator

NewNaiveCreator build a naive creator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL