redis

package
v0.0.0-...-c99e9fc Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr     string `json:"addr" env:"REDIS_ADDR" env-default:"0.0.0.0"`
	Password string `json:"password" env:"REDIS_PASSWORD"`
	DB       int    `json:"db" env:"REDIS_DB"`
}

Config is redis structure config.

type Service

type Service struct {
	rueidis.Client
}

Service wraps a redis client.

func (*Service) Close

func (s *Service) Close(ctx context.Context) error

func (*Service) Dial

func (s *Service) Dial(ctx context.Context, cfg Config) error

Dial connects grpc server and call Register method.

Jump to

Keyboard shortcuts

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