redis

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Redis = "redis"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Default string

	Connections map[string]Configable
}

type Configable

type Configable interface{}

type Manager

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

func New

func New(config *Config, opts ...Opts) *Manager

New a redis manager.

func (*Manager) Connect

func (m *Manager) Connect(name ...string) redis.Cmdable

Connect get a redis client.

type Opts

type Opts func(*Manager) *Manager

type Provider

type Provider struct {
	*foundation.UnimplementedProvider
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(app foundation.Application) *Provider

func (*Provider) Register

func (r *Provider) Register()

Jump to

Keyboard shortcuts

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