multistore

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func New

func New(stores ...storage.Driver) *Driver

func (*Driver) Bind

func (d *Driver) Bind(ctx context.Context, conf *storage.BindConfig) error

func (*Driver) Close

func (d *Driver) Close() (err error)

func (*Driver) Del

func (d *Driver) Del(ctx context.Context, dbnum int, key string) (err error)

func (*Driver) Get

func (d *Driver) Get(ctx context.Context, dbnum int, key string) (value []byte, err error)

func (*Driver) Keys

func (d *Driver) Keys(ctx context.Context, dbnum int, pattern string) (keys []string, err error)

func (*Driver) Set

func (d *Driver) Set(ctx context.Context, dbnum int, key string, value []byte) (err error)

Jump to

Keyboard shortcuts

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