Documentation
¶
Overview ¶
statecache provides a simple way to cache the current status in redis.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateCache ¶
type StateCache struct { Prefix string // redis key prefix to use for cache entries Host string // host identifier, to identifier state values from the current host Client *redis.Client }
func (*StateCache) Clear ¶
func (s *StateCache) Clear(name string)
Clear clears the cache associated with the given process and current host.
Click to show internal directories.
Click to hide internal directories.