redis

package
v0.7.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisPool

type RedisPool struct {
	Client *redis.Client
}

func NewRedisPool

func NewRedisPool(ctx context.Context, o RedisPoolOpts) (*RedisPool, error)

NewRedisPool creates a reusable connection across the cic-custodial componenent. Note: Each db namespace requires its own connection pool.

func (*RedisPool) MakeRedisClient

func (r *RedisPool) MakeRedisClient() interface{}

Interface adapter for asynq to resuse the same Redis connection pool.

type RedisPoolOpts

type RedisPoolOpts struct {
	DSN          string
	MinIdleConns int
}

Jump to

Keyboard shortcuts

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