Documentation
¶
Index ¶
- Constants
- Variables
- func Bind(app *runtime.App, client *RuntimeClient) error
- func Client(ctxs ...context.Context) *goredis.Client
- func ClientFrom(app *runtime.App) *goredis.Client
- func Close() error
- func Health(ctx context.Context) error
- func Init(ctx context.Context, cfg Config, log *zap.Logger) error
- func Raw() *goredis.Client
- type Config
- type Hook
- type RuntimeClient
Constants ¶
View Source
const KeyRedis runtime.Key = "redis"
Variables ¶
View Source
var ErrNotInitialized = errors.New("redis not initialized")
Functions ¶
Types ¶
type Hook ¶
func (Hook) ProcessHook ¶
func (h Hook) ProcessHook(next goredis.ProcessHook) goredis.ProcessHook
func (Hook) ProcessPipelineHook ¶
func (h Hook) ProcessPipelineHook(next goredis.ProcessPipelineHook) goredis.ProcessPipelineHook
type RuntimeClient ¶
var ( Default *RuntimeClient RDB *goredis.Client )
func From ¶
func From(app *runtime.App) *RuntimeClient
Click to show internal directories.
Click to hide internal directories.