package
Version:
v1.10.0-rc.0
Opens a new window with list of versions in this module.
Published: Aug 9, 2020
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
InMemTTL implements a simple TTLed cache in memory. It is concurrency safe.
NewInMemTTL creates a new TTLed cache.
Get retrieves a single entry, extending it's TTL.
Purge removes all entries from the cache.
Remove removes a single entry from the cache.
Set creates or overwrites an entry.
OnDisk is a simple on disk cache.
NewOnDisk creates a new on disk cache.
Get fetches an entry from the cache.
Set adds an entry to the cache.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.