redis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
	Conf Config
}

func (*Client) Close

func (db *Client) Close() error

func (*Client) Config

func (db *Client) Config() any

func (*Client) Init

func (db *Client) Init() error

type Config

type Config struct {
	redis.Options
	CertFile string `json:"cert_file,omitempty"`
	KeyFile  string `json:"key_file,omitempty"`
}

func (*Config) BeforeInject added in v0.0.33

func (c *Config) BeforeInject()

func (*Config) Build

func (c *Config) Build() (*redis.Client, error)

func (*Config) Init

func (c *Config) Init()

Jump to

Keyboard shortcuts

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