package
Version:
v0.4.11
Opens a new window with list of versions in this module.
Published: Jan 27, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Cache is a TTL LRU cache which caches items with a max time to live and with
bounded length
New creates a new TTL LRU cache which caches items with a max time to live and with
bounded length
func (ttlCache *Cache) Add(key interface{}, val interface{})
Add will add a value for a given key
func (ttlCache *Cache) Get(key interface{}) (value interface{}, ok bool)
Get returns a value and a bool indicating the value was found for a given key
Source Files
¶
Directories
¶
Package mock_ttllru is a generated GoMock package.
|
Package mock_ttllru is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.