Documentation ¶
Index ¶
- Constants
- func IsEnabled(addrs []string) bool
- func MakeApplicationsKeyInManager() string
- func MakeKeyInManager(namespace, id string) string
- func MakeKeyInScheduler(namespace, id string) string
- func MakeNamespaceKeyInManager(namespace string) string
- func MakeNamespaceKeyInScheduler(namespace string) string
- func MakePeerKeyInManager(hostname, ip string) string
- func MakePersistentCacheHostKeyInScheduler(schedulerClusterID uint, hostID string) string
- func MakePersistentCacheHostsInScheduler(schedulerClusterID uint) string
- func MakePersistentCachePeerKeyInScheduler(schedulerClusterID uint, peerID string) string
- func MakePersistentCachePeersInScheduler(schedulerClusterID uint) string
- func MakePersistentCacheTaskKeyInScheduler(schedulerClusterID uint, taskID string) string
- func MakePersistentCacheTasksInScheduler(schedulerClusterID uint) string
- func MakeSchedulerKeyInManager(clusterID uint, hostname, ip string) string
- func MakeSchedulersKeyForPeerInManager(hostname, ip string) string
- func MakeSeedPeerKeyInManager(clusterID uint, hostname, ip string) string
- func MakeSeedPeersKeyForPeerInManager(hostname, ip string) string
- func NewRedis(cfg *redis.UniversalOptions) (redis.UniversalClient, error)
Constants ¶
const ( // SeedPeerNamespace prefix of seed peers namespace cache key. SeedPeersNamespace = "seed-peers" // PeersNamespace prefix of peers namespace cache key. PeersNamespace = "peers" // SchedulersNamespace prefix of schedulers namespace cache key. SchedulersNamespace = "schedulers" // SchedulerClustersNamespace prefix of scheduler clusters namespace cache key. SchedulerClustersNamespace = "scheduler-clusters" // TasksNamespace prefix of tasks namespace cache key. PersistentCacheTasksNamespace = "persistent-cache-tasks" // PersistentCachePeersNamespace prefix of persistent cache peers namespace cache key. PersistentCachePeersNamespace = "persistent-cache-peers" // PersistentCacheHostsNamespace prefix of persistent cache hosts namespace cache key. PersistentCacheHostsNamespace = "persistent-cache-hosts" // ApplicationsNamespace prefix of applications namespace cache key. ApplicationsNamespace = "applications" )
const (
// KeySeparator is the separator of redis key.
KeySeparator = ":"
)
Variables ¶
This section is empty.
Functions ¶
func MakeApplicationsKeyInManager ¶
func MakeApplicationsKeyInManager() string
MakeApplicationsKeyInManager make applications key in manager.
func MakeKeyInManager ¶
MakeKeyInManager make key in manager.
func MakeKeyInScheduler ¶
MakeKeyInScheduler make key in scheduler.
func MakeNamespaceKeyInManager ¶
MakeNamespaceKeyInManager make namespace key in manager.
func MakeNamespaceKeyInScheduler ¶
MakeNamespaceKeyInScheduler make namespace key in scheduler.
func MakePeerKeyInManager ¶
MakePeerKeyInManager make peer key in manager.
func MakePersistentCacheHostKeyInScheduler ¶ added in v2.1.60
MakePersistentCacheHostKeyInScheduler make persistent cache host key in scheduler.
func MakePersistentCacheHostsInScheduler ¶ added in v2.1.60
MakePersistentCacheHostsInScheduler make persistent cache hosts in scheduler.
func MakePersistentCachePeerKeyInScheduler ¶ added in v2.1.60
MakePersistentCachePeerKeyInScheduler make persistent cache peer key in scheduler.
func MakePersistentCachePeersInScheduler ¶ added in v2.1.60
func MakePersistentCacheTaskKeyInScheduler ¶ added in v2.1.60
MakeSchedulerClusterKeyInManager make scheduler cluster key in manager.
func MakePersistentCacheTasksInScheduler ¶ added in v2.1.60
MakePersistentCacheTasksInScheduler make persistent cache tasks in scheduler.
func MakeSchedulerKeyInManager ¶
MakeSchedulerKeyInManager make scheduler key in manager.
func MakeSchedulersKeyForPeerInManager ¶
MakeSchedulersKeyForPeerInManager make schedulers key for peer in manager.
func MakeSeedPeerKeyInManager ¶
MakeSeedPeerKeyInManager make seed peer key in manager.
func MakeSeedPeersKeyForPeerInManager ¶ added in v2.1.21
MakeSeedPeersKeyForPeerInManager make seed peers key for peer in manager.
Types ¶
This section is empty.