aerospike

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAerospikeStateStore

func NewAerospikeStateStore(logger logger.Logger) state.Store

NewAerospikeStateStore returns a new Aerospike state store.

Types

type Aerospike

type Aerospike struct {
	state.BulkStore
	// contains filtered or unexported fields
}

Aerospike is a state store.

func (*Aerospike) Delete

func (aspike *Aerospike) Delete(ctx context.Context, req *state.DeleteRequest) error

Delete performs a delete operation.

func (*Aerospike) Features added in v1.1.1

func (aspike *Aerospike) Features() []state.Feature

Features returns the features available in this state store.

func (*Aerospike) Get

func (aspike *Aerospike) Get(ctx context.Context, req *state.GetRequest) (*state.GetResponse, error)

Get retrieves state from Aerospike with a key.

func (*Aerospike) GetComponentMetadata added in v1.10.1

func (aspike *Aerospike) GetComponentMetadata() (metadataInfo metadata.MetadataMap)

func (*Aerospike) Init

func (aspike *Aerospike) Init(_ context.Context, metadata state.Metadata) error

Init does metadata and connection parsing.

func (*Aerospike) Set

func (aspike *Aerospike) Set(ctx context.Context, req *state.SetRequest) error

Set stores value for a key to Aerospike. It honors ETag (for concurrency) and consistency settings.

Jump to

Keyboard shortcuts

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