英[taɪp] 美[taɪp]

n. Type; typeface; (printed or typed) text; in... type of

vt.& vi. typing

vt. [Medicine] Determination (blood type); classifying... by type; becoming a typical example of...; [printing] casting (type, etc.)

Third person singular: types Plural: types Present participle: typing past tense: typed past participle: typed

redis TYPE command syntax

Function:Return the type of value stored in key.

Syntax:TYPE key

Available versions:>= 1.0.0

Time complexity:O(1)

Return:none (key does not exist), string (string), list (list), set (set), zset (ordered set) , hash (hash table).

redis TYPE command example

# 字符串 redis> SET weather "sunny" OK redis> TYPE weather string # 列表 redis> LPUSH book_list "programming in scala" (integer) 1 redis> TYPE book_list list # 集合 redis> SADD pat "dog" (integer) 1 redis> TYPE pat set