redis

package
v0.0.0-...-41a006c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(container goframe.IContainer) *contract.RedisConfig

func NewRedisService

func NewRedisService(params ...any) (any, error)

func WithConfigPath

func WithConfigPath(path string) contract.RedisOption

func WithRedisConfig

func WithRedisConfig(fn func(options *contract.RedisConfig)) contract.RedisOption

Types

type RedisProvider

type RedisProvider struct{}

func (*RedisProvider) Boot

func (p *RedisProvider) Boot(container goframe.IContainer) error

func (*RedisProvider) Inject

func (p *RedisProvider) Inject(container goframe.IContainer) goframe.Handler

func (*RedisProvider) IsDefer

func (p *RedisProvider) IsDefer() bool

func (*RedisProvider) Name

func (p *RedisProvider) Name() string

func (*RedisProvider) Params

func (p *RedisProvider) Params(container goframe.IContainer) []any

type RedisService

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

func (*RedisService) GetClient

func (s *RedisService) GetClient(option ...contract.RedisOption) (*redis.Client, error)

Jump to

Keyboard shortcuts

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