redis

package
v0.0.0-...-a7d37fb Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache(options Options) cache

NewCache instantiates a cache Repository.

func NewStructCache

func NewStructCache(options Options) structCache

NewStructCache instantiates a cache Repository.

Types

type Options

type Options struct {
	RedisOptions      *redis.UniversalOptions
	DurationInSeconds int
}

Options we send to(set a) Redis connection.

func (Options) GetDuration

func (opt Options) GetDuration() time.Duration

Jump to

Keyboard shortcuts

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