redis

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "redis"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = redis.Client

type RedisService

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

func Instance

func Instance() *RedisService

func (*RedisService) Conn

func (self *RedisService) Conn(connName ...string) *redis.Client

func (*RedisService) Pipeline

func (self *RedisService) Pipeline(key string, write ...bool) *pipeline

type ReidsProvider

type ReidsProvider struct {
	core.ServiceProvider
}

func (*ReidsProvider) AfterInit

func (*ReidsProvider) AfterInit(instance any) error

func (*ReidsProvider) BeforeInit

func (*ReidsProvider) BeforeInit(c core.Container) error

func (*ReidsProvider) InitOnBoot

func (*ReidsProvider) InitOnBoot() bool

func (*ReidsProvider) Name

func (self *ReidsProvider) Name() string

func (*ReidsProvider) Params

func (*ReidsProvider) Params(c core.Container) []interface{}

func (*ReidsProvider) RegisterProviderInstance

func (*ReidsProvider) RegisterProviderInstance(c core.Container) core.NewInstanceFunc

type Service

type Service interface {
	Conn(connName ...string) *redis.Client
	Pipeline(string, ...bool) *pipeline
	// contains filtered or unexported methods
}

type SourceSetter

type SourceSetter func() (cache string)

Jump to

Keyboard shortcuts

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