redisutil

package
v1.1.46 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 7 Imported by: 0

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
}

Client is a wrapper for *redis.Client providing a handy Close() function.

func DialRedis

func DialRedis(c *config.Config) (*Client, error)

DialRedis creates a connection to Redis using values from specified config.Config, and returns Client instance.

func (*Client) Close

func (c *Client) Close()

Close closes a connection to Redis.

Jump to

Keyboard shortcuts

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