ledis

package
v0.0.0-...-315b7b0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEndpoints

func AddEndpoints(endpoints ...string) interfaces.CacheOption

func WithCollection

func WithCollection(collection string) interfaces.CacheOption

func WithDB

func WithDB(db int) interfaces.CacheOption

func WithPassowrd

func WithPassowrd(password string) interfaces.CacheOption

Types

type Ledis

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

func New

func New(options ...interfaces.CacheOption) (*Ledis, error)

func (*Ledis) Close

func (l *Ledis) Close() error

func (*Ledis) Delete

func (l *Ledis) Delete(keys ...string) error

func (*Ledis) Exists

func (l *Ledis) Exists(keys ...string) (bool, error)

func (*Ledis) Init

func (l *Ledis) Init() error

func (*Ledis) IsMember

func (l *Ledis) IsMember(value string) (bool, error)

func (*Ledis) Keys

func (l *Ledis) Keys() (interface{}, error)

func (*Ledis) Put

func (l *Ledis) Put(key string, value interface{}) error

func (*Ledis) Set

func (l *Ledis) Set(value string) error

func (*Ledis) Take

func (l *Ledis) Take(key string) (interface{}, error)

Jump to

Keyboard shortcuts

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