redis

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2022 License: MIT Imports: 6 Imported by: 1

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
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(logger *zap.Logger, opts *redis.Options, influxClient influxdb2.Client, org string, bucket string) *RedisClient

func (*RedisClient) Del

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

func (*RedisClient) Get

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

func (*RedisClient) LLen

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

func (*RedisClient) LPush

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

func (*RedisClient) Ping

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

func (*RedisClient) RPop

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

func (*RedisClient) Set

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

Jump to

Keyboard shortcuts

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