clusterclient

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterClient

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

func NewClusterClient

func NewClusterClient(ctx context.Context, cfg *config.Config) (*ClusterClient, error)

func (*ClusterClient) Batch

func (d *ClusterClient) Batch() (ds.Batch, error)

func (*ClusterClient) Close

func (d *ClusterClient) Close() error

func (*ClusterClient) Delete

func (d *ClusterClient) Delete(k ds.Key) error

func (*ClusterClient) Get

func (d *ClusterClient) Get(k ds.Key) ([]byte, error)

func (*ClusterClient) GetSize

func (d *ClusterClient) GetSize(k ds.Key) (int, error)

func (*ClusterClient) Has

func (d *ClusterClient) Has(k ds.Key) (bool, error)

func (*ClusterClient) HashSlots added in v0.0.6

func (d *ClusterClient) HashSlots(k ds.Key) (*shard.Node, error)

func (*ClusterClient) Put

func (d *ClusterClient) Put(k ds.Key, value []byte) error

func (*ClusterClient) Query

func (d *ClusterClient) Query(q dsq.Query) (dsq.Results, error)

func (*ClusterClient) Sync

func (d *ClusterClient) Sync(ds.Key) error

Jump to

Keyboard shortcuts

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