redis

package
v0.0.0-...-d3eb95e Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timeout = 10 * time.Second

Functions

func DialReadOnly

func DialReadOnly(network, addr string) (kv.ReadOnlyStore, error)

func NewReadOnly

func NewReadOnly(conn net.Conn) (kv.ReadOnlyStore, error)

Types

type Store

type Store struct {
	redis.Client
}

func Dial

func Dial(network, addr string) (*Store, error)

func New

func New(conn net.Conn) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Get

func (s *Store) Get(key string) ([]byte, error)

func (*Store) Set

func (s *Store) Set(key string, value []byte) error

func (*Store) SetWithTTL

func (s *Store) SetWithTTL(key string, value []byte, ttl time.Duration) error

Jump to

Keyboard shortcuts

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