Discover Packages
gopkg.in/juju/charmstore.v5
internal
cache
package
Version:
v5.6.2
Opens a new window with list of versions in this module.
Published: Oct 3, 2018
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Cache holds a time-limited cache of values for string keys.
New returns a new Cache that will cache items for
at most maxAge.
Evict removes the entry with the given key from the cache if present.
func (c *Cache ) EvictAll()
EvictAll removes all entries from the cache.
Get returns the value for the given key, using fetch to fetch
the value if it is not found in the cache.
If fetch returns an error, the returned error from Get will have
the same cause.
Len returns the total number of cached entries.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.