package
Version:
v2.0.0-alpha.2
Opens a new window with list of versions in this module.
Published: Jul 19, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewCache creates a new in-memory cache with the specified TTL.
type Cache[T any] struct {
}
Cache is a simple in-memory cache implementation using RWMutex and map
Delete removes the specified key/value from the cache.
Get returns the value associated with the key, or an error if not found.
Set stores a value with the specified key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.