cacher

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cacher

type Cacher interface {
	Get(key string, val interface{}) error
	Set(key string, val interface{}, timeout time.Duration) error
	Keys(pattern string) ([]string, error)
	TTL(key string) (time.Duration, error)
	Expire(key string, duration time.Duration) error
	Del(key string) error
	Exists(keys ...string) (int64, error)
}

Cacher interface to abstract Redis/other

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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