redis

package
v0.0.0-...-9723791 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host    string
	RedisDB int
}

type Pool

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

func NewPool

func NewPool(conf *Config) (*Pool, error)

func (*Pool) Delete

func (p *Pool) Delete(key string) error

func (*Pool) Exists

func (p *Pool) Exists(key string) (value bool, err error)

func (*Pool) GetBytes

func (p *Pool) GetBytes(key string) (value []byte, err error)

func (*Pool) Ping

func (p *Pool) Ping() error

func (*Pool) Set

func (p *Pool) Set(key string, value interface{}) error

Jump to

Keyboard shortcuts

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