package
Version:
v0.17.2
Opens a new window with list of versions in this module.
Published: Jul 9, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cache is a thread safe LRU cache with O(1) time operations.
func (c *Cache) Get(id interface{}) (interface{}, bool)
Get returns a value from the cache.
func (c *Cache) Invalidate()
Invalidate all cache entries.
func (c *Cache) Put(key interface{}, val interface{})
Put adds a value to the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.