cache

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: BSD-3-Clause Imports: 3 Imported by: 3

README

cache

redis cache with versioned keys

Documentation

Index

Constants

View Source
const (
	DefaultRedisAddress = "localhost:6379"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(interface{}, interface{}, time.Duration) error
	Get(interface{}, interface{}) error
}

func New

func New(config Config) Cache

type Config

type Config struct {
	Address  string
	Password string
	Db       int
	Version  string
}

Jump to

Keyboard shortcuts

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