cache

package
Version: v0.0.0-...-58998d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NoExpiry specifies no expiry to the key for which the value is set
	NoExpiry time.Duration = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(key string, value interface{}, expiry time.Duration) bool
	Get(key string, marshallableValue interface{}) bool
	Delete(key string) bool
}

Cache interface is a generic cache definition used for most common types of cacheing operations

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL