goredis

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goredis

type Goredis struct {
	Host     string
	Port     string
	Password string
	Database int
}

func New

func New(host, port, password string, database int) (redis Goredis)

func (Goredis) GetInt

func (g Goredis) GetInt(key string) (data int, err error)

func (Goredis) GetString

func (g Goredis) GetString(key string) (data string, err error)

func (Goredis) PFAdd

func (g Goredis) PFAdd(key string, data ...interface{}) (result int64, err error)

func (Goredis) PFCount

func (g Goredis) PFCount(key ...string) (result int64, err error)

func (Goredis) Set

func (g Goredis) Set(key string, data interface{}) (err error)

func (Goredis) SetEx

func (g Goredis) SetEx(key string, data interface{}, expireSecond int) (err error)

Jump to

Keyboard shortcuts

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