Documentation ¶
Index ¶
- func AllKey() []string
- func Analysis(filename, serverip string) map[string]interface{}
- func AppendMap(result, val map[string]int64) map[string]int64
- func BgsaveKey() (string, bool)
- func BigKey() map[string]interface{}
- func BigKeyClick(clusterName, groupName, keyname string) (string, int)
- func CDelKey(keyname string) (int64, bool)
- func CDeleteKey(keyname string) string
- func CGetClusterNode() []string
- func CGetHashKey(keyname string) (map[string]string, bool)
- func CGetListKey(keyname string) ([]string, bool)
- func CGetSetKey(keyname string) ([]string, bool)
- func CGetStringKey(keyname string) (string, bool)
- func CGetZsetKey(keyname string) ([]string, bool)
- func CQuery_value(keytype, keyname string) (interface{}, int)
- func CTypeKey(keyname string) (string, bool)
- func Cdilatation(codisnode model.CodisChangeNode, auth string, topom codisapi.Topom) map[string]interface{}
- func CheckGroup(groupid int, Curl, ClusterName string) bool
- func CheckSlotGroup(groupid int, Curl, ClusterName string) bool
- func CheckSlotPending(curl, cn string) bool
- func CodisRebalanceAll(curl, cn, auth string) bool
- func ConnectRedis(addr, password string) bool
- func ConnectRedisCluster(addr []string, password string) bool
- func Countkey(keylist []string)
- func Cshrinkage(codisnode model.CodisChangeNode, auth string, topom codisapi.Topom) map[string]interface{}
- func DebugKey(keyname string) (string, bool)
- func DelKey(keyname string) (int64, bool)
- func DeleteKey(keyname string) string
- func DownClusterHost(codisnode model.CodisChangeNode, auth string, topomstats codisapi.TopomStats) (bool, []string)
- func ExistsKey(keyname string) bool
- func ExpireKey(keyname string, keytime int) bool
- func GetHashKey(keyname string) (map[string]string, bool)
- func GetListKey(keyname string) ([]string, bool)
- func GetNextGroupId(topom codisapi.Topom) int
- func GetScanKey(cursor uint64, allnum int64) ([]string, uint64, bool)
- func GetSetKey(keyname string) ([]string, bool)
- func GetSlowLog() ([]redis.SlowLog, bool)
- func GetStringKey(keyname string) (string, bool)
- func GetZsetKey(keyname string) ([]string, bool)
- func HotKey(serverip, pw string) map[string]int
- func IncrStringKey(keyname string) (int64, bool)
- func LockCheck(key string, keytime time.Duration) bool
- func LockOp(lockkeyname string, timekey time.Duration) bool
- func LockRm(key string) bool
- func Query_value(keytype, keyname string) (interface{}, int)
- func ReaderTelnet(conn *telnet.Conn) (out string, knowtime int64)
- func RedisSave(serverip string) bool
- func SenderTelnet(conn *telnet.Conn, command string)
- func SetStringKey(keyname, keyvalue string) (string, bool)
- func SizeHashKey(keyname string) (int64, bool)
- func SizeListKey(keyname string) (int64, bool)
- func SizeSetKey(keyname string) (int64, bool)
- func SizeStringKey(keyname string) (int64, bool)
- func SizeZsetKey(keyname string) (int64, bool)
- func SlowKey() []redis.SlowLog
- func SortTopkey(keymap map[string]int) map[string]int
- func Sortkey(keymap map[string]int64) map[string]int64
- func TelnetCommond(ip, command, pw string) (string, int64)
- func TtlKey(keyname string) (string, bool)
- func TypeKey(keyname string) (string, bool)
- func UnLockOp(lockkeyname string) bool
- func UpClusterHost(codisnode model.CodisChangeNode, topom codisapi.Topom, auth string) (bool, []string)
- type ClientClusterConnect
- type ClientConnect
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigKeyClick ¶
func CDeleteKey ¶
func CGetClusterNode ¶
func CGetClusterNode() []string
func CGetListKey ¶
func CGetSetKey ¶
func CGetZsetKey ¶
func CQuery_value ¶
func Cdilatation ¶
func Cdilatation(codisnode model.CodisChangeNode, auth string, topom codisapi.Topom) map[string]interface{}
Codis扩容操作
func ConnectRedis ¶
func ConnectRedisCluster ¶
func Cshrinkage ¶
func Cshrinkage(codisnode model.CodisChangeNode, auth string, topom codisapi.Topom) map[string]interface{}
缩容操作
func DownClusterHost ¶
func DownClusterHost(codisnode model.CodisChangeNode, auth string, topomstats codisapi.TopomStats) (bool, []string)
codis shrinkage ====================
func GetSlowLog ¶
func GetSlowLog() ([]redis.SlowLog, bool)
func IncrStringKey ¶
func Query_value ¶
func ReaderTelnet ¶
func SenderTelnet ¶
func SenderTelnet(conn *telnet.Conn, command string)
func SetStringKey ¶
func SizeHashKey ¶
func SizeListKey ¶
func SizeSetKey ¶
func SizeStringKey ¶
func SizeZsetKey ¶
func TelnetCommond ¶
func UpClusterHost ¶
func UpClusterHost(codisnode model.CodisChangeNode, topom codisapi.Topom, auth string) (bool, []string)
codis集群添加某个机器
Types ¶
type ClientClusterConnect ¶
type ClientClusterConnect struct {
*redis.ClusterClient
}
集群链接
var CRD ClientClusterConnect
type QueryResult ¶
type QueryResult struct { Ttl string `json:"ttl"` Type string `json:"type"` Value interface{} `json:"value"` Len int `json:"len"` }
func CQueryKey ¶
func CQueryKey(keyname string) QueryResult
func QueryKey ¶
func QueryKey(keyname string) QueryResult
Click to show internal directories.
Click to hide internal directories.