redis

package
v0.1.3-beta Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedis

func GetRedis() *redis.Client

func Redis

func Redis(opts ...Option) plugin.Plugin

Types

type Option

type Option func(r *PlugRedis)

func Config

func Config(c *conf.Redis) Option

func Weight

func Weight(w int) Option

type PlugRedis

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

func (*PlugRedis) ConfPrefix

func (r *PlugRedis) ConfPrefix() string

func (*PlugRedis) DependsOn

func (r *PlugRedis) DependsOn(config.Value) []string

func (*PlugRedis) Load

func (r *PlugRedis) Load(b config.Value) (plugin.Plugin, error)

func (*PlugRedis) Name

func (r *PlugRedis) Name() string

func (*PlugRedis) Unload

func (r *PlugRedis) Unload() error

func (*PlugRedis) Weight

func (r *PlugRedis) Weight() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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