dragonfly

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnableToPingDragonfly = errors.New("unable to ping dragonfly")
)

Functions

This section is empty.

Types

type DragonflyClient

type DragonflyClient struct {
	Client *redis.Client
	//TODO: consider turning into map
	CacheResultsDuration time.Duration
	KeyPrefix            string
}

func NewDragonflyClient

func NewDragonflyClient(host string, port int, password string, cacheResultsDuration time.Duration, keyPrefix string) (*DragonflyClient, error)

func (*DragonflyClient) GetClient

func (dc *DragonflyClient) GetClient() *redis.Client

Jump to

Keyboard shortcuts

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