redis

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisDefaultPort     = 6379
	RedisDefaultDatabase = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

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

func NewClient

func NewClient(uri string, port int, pwd string, db int) *Redis

func (*Redis) GetBool

func (c *Redis) GetBool(k string) bool

func (*Redis) GetInt

func (c *Redis) GetInt(k string) int

func (*Redis) GetSliceString

func (c *Redis) GetSliceString(k string) []string

func (*Redis) GetString

func (c *Redis) GetString(k string) string

func (*Redis) LoadFromFile

func (c *Redis) LoadFromFile(ctx context.Context)

func (*Redis) Ping added in v1.0.5

func (c *Redis) Ping() string

Jump to

Keyboard shortcuts

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