gocache

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilCache     = errors.New("cache cannot be nil")
	ErrNilItem      = errors.New("item cannot be nil")
	ErrItemNotFound = errors.New("item not found")
)

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Set(key string, value interface{}) error
	UpdateValue(key string, value interface{}) error
	Has(key string) bool
	Get(key string) (interface{}, bool)
	Delete(key string)
}

Cache represents an in-memory cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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