TYPE key
可用版本: >= 1.0.0
时间复杂度: O(1)
返回 key
所储存的值的类型。
Redis TYPE命令 返回值
none
(key不存在)string
(字符串)list
(列表)set
(集合)zset
(有序集)hash
(哈希表)stream
(流)
TYPE key
可用版本: >= 1.0.0
时间复杂度: O(1)
返回 key
所储存的值的类型。
none
(key不存在)string
(字符串)list
(列表)set
(集合)zset
(有序集)hash
(哈希表)stream
(流)