cache

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFound = Error("Not Found")

Functions

This section is empty.

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type ICache

type ICache interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte) error
	Delete(key string) error
}

type ICacheE

type ICacheE interface {
	ICache
	SetE(key string, value []byte, exp time.Duration) error
}

Jump to

Keyboard shortcuts

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