redis

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: GPL-3.0 Imports: 3 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 {
	Client *redis.Client
}

func New

func New() *Redis

func (*Redis) Close

func (r *Redis) Close() error

func (*Redis) Connect

func (r *Redis) Connect(uri string) error

func (*Redis) Exists

func (r *Redis) Exists(key string) (bool, error)

func (*Redis) GetBytes

func (r *Redis) GetBytes(key string) ([]byte, error)

func (*Redis) GetString

func (r *Redis) GetString(key string) (string, error)

func (*Redis) Increment

func (r *Redis) Increment(key string) error

func (*Redis) Set

func (r *Redis) Set(key string, value interface{}, ttl time.Duration) error

func (*Redis) TTL

func (r *Redis) TTL(key string) (time.Duration, error)

Jump to

Keyboard shortcuts

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