Files
x/cache/interface.go
Colin Henry 54aae5f242
All checks were successful
Go / build (1.23) (push) Successful in 3m51s
big updates: tests, bug fixed, documentation. oh my
2026-01-03 15:53:50 -08:00

10 lines
292 B
Go

package cache
// Interface defines a generic cache with get and put operations.
type Interface[K comparable, V any] interface {
// Get retrieves a value from the cache by key, returns zero value if not found
Get(key K) V
// Put stores a key-value pair in the cache
Put(key K, value V)
}