redis

package
v0.0.0-...-b3661d0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 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 {
	Ctx   context.Context
	Redis *redis.Client
}

func NewRedisClient

func NewRedisClient(addr string, passwd string, db int) *RedisClient

func (*RedisClient) AppendList

func (r *RedisClient) AppendList(key string, value string) error

func (*RedisClient) AppendListWithLimitSize

func (r *RedisClient) AppendListWithLimitSize(key string, value string, limit int64) error

func (*RedisClient) DelList

func (r *RedisClient) DelList(key string) (int64, error)

func (*RedisClient) Get

func (r *RedisClient) Get(key string) string

func (*RedisClient) GetList

func (r *RedisClient) GetList(key string) ([]string, error)

func (*RedisClient) Set

func (r *RedisClient) Set(key string, value string, timeout int64)

func (*RedisClient) SetList

func (r *RedisClient) SetList(key string, values []string) error

Jump to

Keyboard shortcuts

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