aerostore

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AeroStore

type AeroStore struct {
	WritePolicy *as.WritePolicy
	BasePolicy  *as.BasePolicy
	// contains filtered or unexported fields
}

AeroStore provides Aerospike storage. It is highly recommended to include a MaxSizeStore prior to this matching maximum storage size.

func New

func New(namespace, hosts string) (*AeroStore, error)

New creates a storage with the supplied namespace. Multiple hosts can be specified separated by ','. If no port is given on hosts, port 3000 is assumed. It is highly recommended to include a MaxSizeStore prior to this matching maximum storage size.

func (*AeroStore) Delete

func (a *AeroStore) Delete(ctx context.Context, set, key string) error

func (*AeroStore) Get

func (a *AeroStore) Get(ctx context.Context, set, key string) ([]byte, error)

func (*AeroStore) Set

func (a *AeroStore) Set(ctx context.Context, set, key string, val []byte) error

Jump to

Keyboard shortcuts

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