package
Version:
v2.10.0-rc.2
Opens a new window with list of versions in this module.
Published: May 2, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cache watches a key in etcd and caches the value in an atomic value
This is useful for frequently read but infrequently updated values
NewCache returns a cache for the given key in the etcd collection
func (c *Cache) Load() interface{}
Load retrieves the current cached value
Watch should be called in a goroutine to start the watcher
Source Files
¶
Click to show internal directories.
Click to hide internal directories.