cache

package
v0.0.0-...-767ff25 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 3 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 {
	Set(string, interface{})
	Get(string) (interface{}, bool)
	Remove(string)
}

Cache is the interface for a timed key-value store

func New

func New(name string, ttl time.Duration) Cache

New creates instance of timed key-value store.

Jump to

Keyboard shortcuts

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