package
Version:
v0.0.0-...-71692c9
Opens a new window with list of versions in this module.
Published: Mar 1, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 17
Opens a new window with list of known importers.
Documentation
¶
Cache is a synchronised map of items that auto-expire once stale
NewCache is a helper to create instance of the Cache struct
Count returns the number of items in the cache
(helpful for tracking memory leaks)
Get is a thread-safe way to lookup items
Every lookup, also touches the item, hence extending it's life
Set is a thread-safe way to add new items to the map
Item represents a record in the cache map
Storage is a non thread-safe in-memory leaky bucket factory.
New initializes the in-memory bucket store.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.