autoredisclient

package
v0.0.0-...-ea87560 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindShard

func FindShard(key string, numServers int32) int

Types

type RedisClient

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

func NewRedisClient

func NewRedisClient(replicas [][]string) (*RedisClient, error)

func (*RedisClient) Close

func (c *RedisClient) Close() error

func (*RedisClient) Delete

func (c *RedisClient) Delete(key string) (string, error)

func (*RedisClient) Get

func (c *RedisClient) Get(key string) (string, error)

func (*RedisClient) Set

func (c *RedisClient) Set(key, value string) (string, error)

Jump to

Keyboard shortcuts

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