redis

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("redis",
	fx.Provide(
		NewRedisClient,
	),
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Address       string
	Password      string
	DatabaseIndex int
}

type NewRedisClientParams

type NewRedisClientParams struct {
	fx.In

	Configuration Configuration
}

type RedisClient

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

func NewRedisClient

func NewRedisClient(p NewRedisClientParams) (*RedisClient, error)

func (*RedisClient) Conn

func (r *RedisClient) Conn() *gredis.Client

Jump to

Keyboard shortcuts

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