redis

package
v0.0.0-...-663fca7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: BSL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Context - the context passed to Redis when performing operations
	Context = context.Background()
	// RedisClient - the client connected to Redis
	RedisClient *redis.Client
)

Functions

func ConnectToRedis

func ConnectToRedis()

ConnectToRedis - connects to the Redis server

func Get

func Get(key string) (string, error)

Get - gets the value at a key

func GetJSON

func GetJSON(key string, object interface{}) error

GetJSON - gets a string-serialized struct in Redis at the given key

func GetKeys

func GetKeys(pattern string) ([]string, error)

GetKeys - get a list of keys that match the provided pattern

Types

This section is empty.

Jump to

Keyboard shortcuts

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