Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
GenerateKey creates a cache key from multiple string components
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewWithMaxItems ¶
NewWithMaxItems creates a cache with a specific maximum number of items
func NewWithMemoryLimit ¶
NewWithMemoryLimit creates a cache with a specific memory limit
func NewWithoutCleanup ¶
NewWithoutCleanup creates a cache without starting the cleanup goroutine Useful for testing or when cleanup is managed externally
Click to show internal directories.
Click to hide internal directories.