redis

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cache *redis.Client, options *Options) cache.Driver

func NewCluster

func NewCluster(cache *redis.ClusterClient, options *Options) cache.Driver

Types

type Options

type Options struct {
	TTL time.Duration `config:"ttl"`
}

Options represents cache options.

Jump to

Keyboard shortcuts

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