redismgr

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cli

func Cli() *libredis.Client

func Decr added in v0.0.5

func Decr(p string) (int64, error)

func Del

func Del(k string) error

func Expire added in v0.0.5

func Expire(p string, to time.Duration) (bool, error)

func ExpireS added in v0.0.5

func ExpireS(p string, to int) (bool, error)

func Get

func Get(k string, i ...interface{}) (string, error)

func GetI added in v0.0.5

func GetI(k string, i ...interface{}) (int64, error)

func GetJson added in v0.0.5

func GetJson(k string, o interface{}, i ...interface{}) error

func HGet

func HGet(k string, v string) (string, error)

func HGetAll

func HGetAll(k string) (map[string]string, error)

func Hset

func Hset(k string, k2 string, v string) error

func Incr added in v0.0.5

func Incr(p string) (int64, error)

func Keys

func Keys(p string, i ...interface{}) ([]string, error)

func PGet

func PGet(p string) (map[string]string, error)

func Pub

func Pub(ch string, msg interface{})

func RawSub

func RawSub(ch ...string) (ret <-chan string, closefn func())

func Set

func Set(k string, v string) error

func Sub

func Sub(ch ...string) (ret <-chan *Msg, closefn func())

Types

type Msg

type Msg struct {
	Chan    string
	Payload string
	Err     error
}

Jump to

Keyboard shortcuts

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