redis

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 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 `hcl:"address"`
	Password      string `hcl:"password"`
	DatabaseIndex int    `hcl:"database_index"`
}

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
JackTT - Gopher 🇻🇳