redis

package
v0.0.0-...-62bfe6a Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(
	catalog service.Catalog,
	config Config,
) (storage.Store, error)

NewStore returns a new Redis-based implementation of the Store interface

Types

type Config

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

Config represents configuration options for the Redis-based implementation of the Store interface

func NewConfigWithDefaults

func NewConfigWithDefaults() Config

NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.

Jump to

Keyboard shortcuts

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