compcontredis

package
v0.0.0-...-dffcbd1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TypeID compcont.ComponentTypeID = "contrib.redis"

Variables

This section is empty.

Functions

func MustRegister

func MustRegister(registry compcont.IFactoryRegistry)

Types

type Component

type Component interface {
	GetClient() *redis.Client
	Destroy() error
}

func New

func New(cfg Config) (comp Component, err error)

type Config

type Config struct {
	URL string `ccf:"url"`
}

Jump to

Keyboard shortcuts

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