redis

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT 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
}

func NewRedisClient

func NewRedisClient(addr string, password string, db int) (*RedisClient, error)

func (*RedisClient) Close

func (r *RedisClient) Close() error

func (*RedisClient) LPush

func (r *RedisClient) LPush(ctx context.Context, key string, value string) error

func (*RedisClient) RPop

func (r *RedisClient) RPop(ctx context.Context, key string) (string, error)

Jump to

Keyboard shortcuts

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