redis

package
v2.1.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	// KeySeparator is the separator of redis key.
	KeySeparator = ":"
)

Variables

This section is empty.

Functions

func IsEnabled

func IsEnabled(addrs []string) bool

IsEnabled check redis is enabled.

func MakeApplicationsKeyInManager

func MakeApplicationsKeyInManager() string

MakeApplicationsKeyInManager make applications key in manager.

func MakeKeyInManager

func MakeKeyInManager(namespace, id string) string

MakeKeyInManager make key in manager.

func MakeKeyInScheduler

func MakeKeyInScheduler(namespace, id string) string

MakeKeyInScheduler make key in scheduler.

func MakeNamespaceKeyInManager

func MakeNamespaceKeyInManager(namespace string) string

MakeNamespaceKeyInManager make namespace key in manager.

func MakeNamespaceKeyInScheduler

func MakeNamespaceKeyInScheduler(namespace string) string

MakeNamespaceKeyInScheduler make namespace key in scheduler.

func MakePeerKeyInManager

func MakePeerKeyInManager(hostname, ip string) string

MakePeerKeyInManager make peer key in manager.

func MakePersistentCacheHostKeyInScheduler added in v2.1.60

func MakePersistentCacheHostKeyInScheduler(schedulerClusterID uint, hostID string) string

MakePersistentCacheHostKeyInScheduler make persistent cache host key in scheduler.

func MakePersistentCacheHostsInScheduler added in v2.1.60

func MakePersistentCacheHostsInScheduler(schedulerClusterID uint) string

MakePersistentCacheHostsInScheduler make persistent cache hosts in scheduler.

func MakePersistentCachePeerKeyInScheduler added in v2.1.60

func MakePersistentCachePeerKeyInScheduler(schedulerClusterID uint, peerID string) string

MakePersistentCachePeerKeyInScheduler make persistent cache peer key in scheduler.

func MakePersistentCachePeersInScheduler added in v2.1.60

func MakePersistentCachePeersInScheduler(schedulerClusterID uint) string

func MakePersistentCacheTaskKeyInScheduler added in v2.1.60

func MakePersistentCacheTaskKeyInScheduler(schedulerClusterID uint, taskID string) string

MakeSchedulerClusterKeyInManager make scheduler cluster key in manager.

func MakePersistentCacheTasksInScheduler added in v2.1.60

func MakePersistentCacheTasksInScheduler(schedulerClusterID uint) string

MakePersistentCacheTasksInScheduler make persistent cache tasks in scheduler.

func MakeSchedulerKeyInManager

func MakeSchedulerKeyInManager(clusterID uint, hostname, ip string) string

MakeSchedulerKeyInManager make scheduler key in manager.

func MakeSchedulersKeyForPeerInManager

func MakeSchedulersKeyForPeerInManager(hostname, ip string) string

MakeSchedulersKeyForPeerInManager make schedulers key for peer in manager.

func MakeSeedPeerKeyInManager

func MakeSeedPeerKeyInManager(clusterID uint, hostname, ip string) string

MakeSeedPeerKeyInManager make seed peer key in manager.

func MakeSeedPeersKeyForPeerInManager added in v2.1.21

func MakeSeedPeersKeyForPeerInManager(hostname, ip string) string

MakeSeedPeersKeyForPeerInManager make seed peers key for peer in manager.

func NewRedis

func NewRedis(cfg *redis.UniversalOptions) (redis.UniversalClient, error)

NewRedis returns a new redis client.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL