go_redis_client

package
v0.0.0-...-517d9f4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package go_redis_client Time : 2022/8/13 11:34 Author : xushiyin contact : yuqingxushiyin@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(c *RedisConf) *RedisClient

func (*RedisClient) Close

func (c *RedisClient) Close() error

func (*RedisClient) Flush

func (c *RedisClient) Flush(ctx context.Context) error

func (*RedisClient) Get

func (c *RedisClient) Get(ctx context.Context, key string) (string, error)

func (*RedisClient) HyperLogAdd

func (c *RedisClient) HyperLogAdd(ctx context.Context, key string, els ...interface{}) (int64, error)

func (*RedisClient) HyperLogCount

func (c *RedisClient) HyperLogCount(ctx context.Context, key string) (int64, error)

func (*RedisClient) Set

func (c *RedisClient) Set(ctx context.Context, key string, value interface{}) error

type RedisConf

type RedisConf struct {
	// host:port address.
	Addr     string
	Username string
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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