cache

package
v0.0.0-...-a41b718 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCacheKeyMissed  = errors.New("Key missed")
	ErrorCacheKeyExpired = errors.New("Key expired")
	ErrorCacheFull       = errors.New("Cache full")
)

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (record *r.Record, err error)
	Set(key string, record *r.Record) error
	Exists(key string) bool
	Remove(key string)
	Length() int
	Dump() string
}

Cache interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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