redis

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

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

Go to latest
Published: Sep 10, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a redis client.

func New

func New(ctx context.Context) (*Client, error)

New creates a new redis client.

func (*Client) Close

func (c *Client) Close(_ context.Context) kv.Error

Close closes the redis pool.

func (*Client) ProcessError

func (*Client) ProcessError(err error) kv.Error

ProcessError replaces any known values with our own db.Error types.

func (*Client) RedisClient

func (c *Client) RedisClient() *redis.Client

RedisClient returns the redis client.

type ContextKey

type ContextKey int

ContextKey is a key used in http request contexts.

const (
	// ContextCalledBy is the calling function's name.
	ContextCalledBy ContextKey = iota
)

Jump to

Keyboard shortcuts

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