redis

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *Client) imgart.Cache

New creates a redis cache implamentation

Types

type Client

type Client struct {
	*redis.Client
}

Client redis

func NewClient

func NewClient(c Configuration) (*Client, error)

NewClient creates a redis client

func (*Client) Check

func (c *Client) Check() error

Check redis health

type Configuration

type Configuration struct {
	Address  string
	Password string
	Database int
}

Configuration for Redis Client

func (*Configuration) Validate

func (c *Configuration) Validate() error

Validate if configuration is valid

Jump to

Keyboard shortcuts

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