cache

package
v0.40.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (interface{}, bool, error)
	Purge() error
	Remove(key string) error
	Set(key string, value interface{}) error
}

Cache interface.

type TTLCache

type TTLCache interface {
	Cache
	SetTTL(key string, value interface{}, ttl time.Duration) error
}

TTLCache interface adds support for expiring key-value pairs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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