tredis

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	*redis.Client
}

func NewRedisClient

func NewRedisClient(host string, port string, password string, db int) *RedisClient

func (*RedisClient) DeleteHKey

func (r *RedisClient) DeleteHKey(ctx context.Context, hKey string, field string) error

func (*RedisClient) ReadHKey

func (r *RedisClient) ReadHKey(ctx context.Context, hKey string, field string, dataType any) (any, error)

func (*RedisClient) WriteHKey

func (r *RedisClient) WriteHKey(ctx context.Context, hKey string, field string, data any) error

Jump to

Keyboard shortcuts

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