redis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(config CacheConfig) badges.Cache

NewCache returns a new Redis-based implementation of the badges.Cache interface.

Types

type CacheConfig

type CacheConfig struct {
	RedisHost      string
	RedisPort      int
	RedisPassword  string
	RedisDB        int
	RedisEnableTLS bool
	RedisPrefix    string
}

CacheConfig represents configuration options for the Redis-based implementation of the badges.Cache interface

Jump to

Keyboard shortcuts

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