cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const DefaultTtl = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	CacheGet(key string) (string, error)
	CacheSet(key, value string, ttl int32) error
}

type Item

type Item struct {
	Value      string
	Timestamp  int64
	TTLSeconds int32
}

Jump to

Keyboard shortcuts

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