Documentation ¶
Overview ¶
data structures
scanner to iterate all keys in the redis
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func MergeKeyMeta ¶
Types ¶
type Distribution ¶
distributions of keys of all prefixes
type KeyStat ¶
type KeyStat struct { Distribution map[string]Distribution `json:"distribution"` Metrics }
total stat and distributions
type Metrics ¶
type Metrics struct { KeyCount int64 `json:"keyCount"` KeySize int64 `json:"keySize"` DataSize int64 `json:"dataSize"` KeyNeverExpire int64 `json:"neverExpire"` ExpireInHour int64 `json:"expireInHour"` // >= 0h < 1h ExpireInDay int64 `json:"expireInDay"` // >= 1h < 24h ExpireInWeek int64 `json:"expireInWeek"` // >= 1d < 7d ExpireOutWeek int64 `json:"expireOutWeek"` // >= 7d }
basic metrics of a group of key
type RedisStat ¶
type RedisStat struct { All KeyStat `json:"all"` String KeyStat `json:"string"` Hash KeyStat `json:"hash"` Set KeyStat `json:"set"` List KeyStat `json:"list"` ZSet KeyStat `json:"zset"` Other KeyStat `json:"other"` BigKeys KeyStat `json:"bigKeys"` }
func ScanAllKeys ¶
func ScanAllKeys(cli redis.UniversalClient) RedisStat
Click to show internal directories.
Click to hide internal directories.