redis

package
v0.0.0-...-10ab459 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opt Option) (kvell.Store, error)

NewClient ...

Types

type Client

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

Client ...

func (*Client) Close

func (c *Client) Close() error

Close ...

func (*Client) Delete

func (c *Client) Delete(key string) error

Delete ...

func (*Client) Get

func (c *Client) Get(key string, value interface{}) (found bool, err error)

Get ...

func (*Client) Health

func (c *Client) Health() error

Health ...

func (*Client) Set

func (c *Client) Set(key string, value interface{}) error

Set ...

func (*Client) UpdateTTL

func (c *Client) UpdateTTL(key string) error

UpdateTTL ...

type Option

type Option struct {
	Host     string
	Port     int
	Password string
	DB       int
	TTL      time.Duration
}

Option ...

Jump to

Keyboard shortcuts

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