Discover Packages
github.com/lrstanley/vex
internal
cache
package
Version:
v0.0.0-...-2149ff8
Opens a new window with list of versions in this module.
Published: Dec 19, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New returns a new cache with the given capacity. If capacity is 0, the cache will
have no limit on the number of items it can hold. Uses LFU eviction policy.
func (c *Cache [K, V]) DeleteAll()
DeleteAll deletes all items from the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.