Documentation ¶
Index ¶
- Constants
- func MakeCacheKey(namespace string, id string) string
- func MakePeerCacheKey(hostname, ip string) string
- func MakeSchedulerCacheKey(hostname string, clusterID uint) string
- func MakeSchedulersCacheKey(hostname, ip string) string
- func MakeSeedPeerCacheKey(hostname string, clusterID uint) string
- type Cache
Constants ¶
View Source
const ( // Seed Peer prefix of cache key. SeedPeerNamespace = "seed-peer" // Peer prefix of cache key. PeerNamespace = "peer" // Scheduler prefix of cache key. SchedulerNamespace = "scheduler" // Schedulers prefix of cache key. SchedulersNamespace = "schedulers" )
View Source
const ( // PeerCacheTTL is the ttl for peer cache PeerCacheTTL = 30 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func MakePeerCacheKey ¶ added in v2.0.3
Make cache key for peer
func MakeSchedulerCacheKey ¶
Make cache key for scheduler
func MakeSchedulersCacheKey ¶
Make cache key for schedulers
func MakeSeedPeerCacheKey ¶ added in v2.0.3
Make cache key for seed peer
Types ¶
Click to show internal directories.
Click to hide internal directories.