redis

package
v0.0.0-...-41b38f0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 2 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 {
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(options RedisClientOption) *RedisClient

func (*RedisClient) LPush

func (c *RedisClient) LPush(key string, values []byte) error

func (*RedisClient) LRange

func (c *RedisClient) LRange(key string, start, stop int64) ([]string, error)

func (*RedisClient) SAdd

func (c *RedisClient) SAdd(key string, values []byte) error

func (*RedisClient) SMembers

func (c *RedisClient) SMembers(key string) ([]string, error)

type RedisClientOption

type RedisClientOption struct {
	Addr     string
	Password string
}

Jump to

Keyboard shortcuts

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