cache

package
v0.0.0-...-f1b58f7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Has(key string) bool
	Get(key string, data interface{}) error
	Set(key string, data interface{}, ex ...time.Duration) error
	Del(key string) error
}

func NewLocal

func NewLocal(prefix, root string) Cache

func NewRedis

func NewRedis(prefix string, pool redis.Redis) Cache

Jump to

Keyboard shortcuts

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