Categorygithub.com/LUSHDigital/core-redis
modulepackage
0.2.0
Repository: https://github.com/lushdigital/core-redis.git
Documentation: pkg.go.dev

# README

Core Redis

This package is used to wrap redis to satisfy the health checking server in the LUSH core service library

Examples

Use in conjunction with readysrv

client := redis.NewDefaultClient()
readysrv.New(readysrv.Checks{
    "redis": client,
})

# Functions

NewClient returns a wrapped redis client.
NewDefaultClient returns a wrapped redis client with default configuration.
NewGobClient returns a redis client wrapper for Gob operations.
Parse attempts to parse a redis url and return options.
URLFromEnv tries to retrieve the redis url from the environment.

# Constants

DefaultURL is the default redis host url.

# Structs

Client represents a wrapped redis client.
ConfigError happens when the redis connection cannot be configured.
GobClient represents a wrapped redis client for Gob operations.