The highest tagged major version is
v5 .
Discover Packages
gopkg.in/juju/charmstore.v5-unstable
internal
cache
package
Version:
v5.4.1
Opens a new window with list of versions in this module.
Published: Aug 6, 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.