redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.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 RedisClient

type RedisClient struct {
	Client  *redis.Client
	Context context.Context
}

func NewClient

func NewClient(addr string, password string, db int) (rds *RedisClient, err error)

func (RedisClient) Decr

func (rds RedisClient) Decr(key string) bool

func (RedisClient) DecrBy

func (rds RedisClient) DecrBy(key string, value int64) bool

func (RedisClient) Del

func (rds RedisClient) Del(keys ...string) bool

func (RedisClient) FlushDB

func (rds RedisClient) FlushDB() bool

func (RedisClient) Get

func (rds RedisClient) Get(key string) string

func (RedisClient) Has

func (rds RedisClient) Has(key string) bool

func (RedisClient) Incr

func (rds RedisClient) Incr(key string) bool

func (RedisClient) IncrBy

func (rds RedisClient) IncrBy(key string, value int64) bool

func (RedisClient) Ping

func (rds RedisClient) Ping() (err error)

func (RedisClient) Set

func (rds RedisClient) Set(key string, value interface{}, expiration time.Duration) bool

Jump to

Keyboard shortcuts

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