Documentation ¶
Index ¶
- Constants
- func MakeBucketsCacheKey(name string) string
- func MakeCacheKey(namespace string, id string) string
- func MakeModelKey(clusterID uint, hostname, ip, id string) string
- func MakeModelVersionKey(clusterID uint, hostname, ip, id, version 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" )
Variables ¶
This section is empty.
Functions ¶
func MakeBucketsCacheKey ¶ added in v2.0.4
Make cache key for buckets.
func MakeModelKey ¶ added in v2.0.6
Make cache model key.
func MakeModelVersionKey ¶ added in v2.0.6
Make cache model version key.
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.