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