Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRedisTimeout default redis timeout (ms) DefaultRedisTimeout = 2000 //DefaultClusterNodeTimeout default cluster node timeout (ms) //The maximum amount of time a Redis Cluster node can be unavailable, without it being considered as failing DefaultClusterNodeTimeout = 2000 // RedisRenameCommandsDefaultPath default path to volume storing rename commands RedisRenameCommandsDefaultPath = "/etc/secret-volume" // RedisRenameCommandsDefaultFile default file name containing rename commands RedisRenameCommandsDefaultFile = "" // RedisConfigFileDefault default config file path RedisConfigFileDefault = "/redis-conf/redis.conf" // RedisServerBinDefault default binary name RedisServerBinDefault = "redis-server" // RedisServerPortDefault default redis port RedisServerPortDefault = "6379" // RedisMaxMemoryDefault default redis max memory RedisMaxMemoryDefault = 0 // RedisMaxMemoryPolicyDefault default redis max memory evition policy RedisMaxMemoryPolicyDefault = "noeviction" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redis ¶
type Redis struct { DialTimeout int ClusterNodeTimeout int ConfigFileName string HTTPServerAddr string ServerBin string ServerPort string ServerIP string MaxMemory uint32 MaxMemoryPolicy string ConfigFiles []string // contains filtered or unexported fields }
Redis used to store all Redis configuration information
func (*Redis) GetRenameCommandsFile ¶
GetRenameCommandsFile return the path to the rename command file, or empty string if not define
Click to show internal directories.
Click to hide internal directories.