redisctx

package
v0.0.0-...-96288a7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(ctx context.Context) *redis.Client

GetClient gets client from context

func GetPrefix

func GetPrefix(ctx context.Context) string

GetPrefix gets prefix from context

func Middleware

func Middleware(c *redis.Client, prefix string) middleware.Middleware

Middleware creates new redis middleware

func NewClientContext

func NewClientContext(ctx context.Context, c *redis.Client) context.Context

NewClientContext creates new redis client context

func NewPrefixContext

func NewPrefixContext(ctx context.Context, prefix string) context.Context

NewPrefixContext creates new redis prefix context

Types

This section is empty.

Jump to

Keyboard shortcuts

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