redis

package
v0.0.0-...-1bcb742 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Db *drv.Client
}

func NewRedis

func NewRedis(ctx context.Context, host, port, password string, db int) (*Redis, error)

func (*Redis) CheckKey

func (c *Redis) CheckKey(ctx context.Context, key string) (bool, error)

func (*Redis) DeleteKey

func (c *Redis) DeleteKey(ctx context.Context, key string) error

func (*Redis) Disconnect

func (r *Redis) Disconnect() error

func (*Redis) SetKey

func (c *Redis) SetKey(ctx context.Context, key string, value interface{}, dur time.Duration) error

Jump to

Keyboard shortcuts

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