cache

package
v0.0.0-...-81568eb Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(hash string) string

func IsCached

func IsCached(hash string) bool

func Set

func Set(storageHash string, cacheableString string) string

Types

type Storage

type Storage interface {
	Get(key string) []byte
	Set(key string, content []byte, duration time.Duration)
}

Storage mechanism for caching strings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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