redis

package
v0.0.0-...-bbe9989 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

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

func GetRedis

func GetRedis() (*Redis, error)

Return a copy of the Redis singleton.

func (*Redis) Add

func (r *Redis) Add(value ...interface{}) error

func (*Redis) Shutdown

func (r *Redis) Shutdown()

type RedisConfig

type RedisConfig struct {
	RedisURL string `required:"true" envconfig:"cos_proxy_env_redis_url"`
	RedisKey string `required:"true" envconfig:"cos_proxy_env_redis_key"`
}

func GetConfig

func GetConfig() (RedisConfig, error)

Return a copy, so that the singleton config can't be touched

Jump to

Keyboard shortcuts

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