client

package
v0.0.0-...-3665887 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(addr string, maxTimeout time.Duration) *Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, key []byte) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, key, buf []byte) ([]byte, error)

func (*Client) Has

func (c *Client) Has(ctx context.Context, key []byte) (bool, error)

func (*Client) Ping

func (c *Client) Ping(ctx context.Context) error

func (*Client) Put

func (c *Client) Put(ctx context.Context, key, val []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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