aerospike

package
v0.0.0-...-cfdbbe0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAerospikeBackend

func NewAerospikeBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

NewAerospikeBackend constructs an AerospikeBackend backend.

Types

type AerospikeBackend

type AerospikeBackend struct {
	// contains filtered or unexported fields
}

AerospikeBackend is a physical backend that stores data in Aerospike.

func (*AerospikeBackend) Delete

func (a *AerospikeBackend) Delete(_ context.Context, key string) error

Delete is used to permanently delete an entry.

func (*AerospikeBackend) Get

Get is used to fetch an entry.

func (*AerospikeBackend) List

func (a *AerospikeBackend) List(_ context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*AerospikeBackend) Put

func (a *AerospikeBackend) Put(_ context.Context, entry *physical.Entry) error

Put is used to insert or update an entry.

Jump to

Keyboard shortcuts

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