Documentation ¶
Index ¶
- Constants
- func IsEnabled(addrs []string) bool
- func MakeApplicationsKeyInManager() string
- func MakeDistributedRateLimiterKeyInManager(key string) string
- func MakeDistributedRateLimiterLockerKeyInManager(key string) 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 MakePersistentCachePeersOfPersistentCacheHostInScheduler(schedulerClusterID uint, hostID string) string
- func MakePersistentCachePeersOfPersistentCacheTaskInScheduler(schedulerClusterID uint, taskID string) string
- func MakePersistentCacheTaskKeyInScheduler(schedulerClusterID uint, taskID string) string
- func MakePersistentCacheTasksInScheduler(schedulerClusterID uint) string
- func MakePersistentPeersOfPersistentCacheTaskInScheduler(schedulerClusterID uint, taskID string) 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" // PersistentPeersNamespace prefix of persistent peers namespace cache key. PersistentPeersNamespace = "persistent-peers" // PersistentCacheHostsNamespace prefix of persistent cache hosts namespace cache key. PersistentCacheHostsNamespace = "persistent-cache-hosts" // ApplicationsNamespace prefix of applications namespace cache key. ApplicationsNamespace = "applications" // RateLimitersNamespace prefix of rate limiters namespace cache key. RateLimitersNamespace = "rate-limiters" )
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 MakeDistributedRateLimiterKeyInManager ¶ added in v2.1.63
MakeSchedulerClusterKeyInManager make distributed rate limiter key in manager.
func MakeDistributedRateLimiterLockerKeyInManager ¶ added in v2.1.63
MakeSchedulerClusterKeyInManager make locker key of distributed rate limiter 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
MakePersistentCachePeersInScheduler make persistent cache peers in scheduler.
func MakePersistentCachePeersOfPersistentCacheHostInScheduler ¶ added in v2.1.62
func MakePersistentCachePeersOfPersistentCacheHostInScheduler(schedulerClusterID uint, hostID string) string
MakePersistentCachePeersOfPersistentCacheHostInScheduler make persistent cache peers of persistent cache host in scheduler.
func MakePersistentCachePeersOfPersistentCacheTaskInScheduler ¶ added in v2.1.62
func MakePersistentCachePeersOfPersistentCacheTaskInScheduler(schedulerClusterID uint, taskID string) string
MakePersistentCachePeersOfPersistentCacheTaskInScheduler make persistent cache peers of persistent cache task in scheduler.
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 MakePersistentPeersOfPersistentCacheTaskInScheduler ¶ added in v2.1.63
func MakePersistentPeersOfPersistentCacheTaskInScheduler(schedulerClusterID uint, taskID string) string
MakePersistentPeersOfPersistentCacheTaskInScheduler make persistent peers of persistent cache task 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.