cache

package
v0.0.0-...-9f1a7a8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEntryNotFound = errors.New("cache entry not found")
)

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	Key      string
	Value    string
	ExpireAt time.Time
}

type CacheService

type CacheService interface {
	GetAll(keys ...string) ([]CacheEntry, error)
	Get(key string) (CacheEntry, error)
	Put(entry CacheEntry) error
}

Jump to

Keyboard shortcuts

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