package
Version:
v0.1.0-M3
Opens a new window with list of versions in this module.
Published: May 19, 2023
License: Apache-2.0, EPL-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
Cache is a system used structure for the goals of caching.
func NewTTLCache() *Cache
NewTTLCache creates cache data for the TTL usage.
Close is used to close the cache.
First removes the first element.
Get finds and returns the element mapped with the provided key if available.
Put adds element with the provided key.
Remove removes the element with the provided key and returns true is present.
Size returns the elements size.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.