redis TYPE command
Translation results:
英[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 commandsyntax
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 commandexample
# 字符串 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
Popular Recommendations
- Laravel Type Casting
- property target does not exist on type HTMLInputElement
- Choosing an Appropriate Integer Type in C and C
- Why you should always add type safety to your environment variables?
- Beyond Basics: Handling Numeric Inputs Like a Pro with ``
- How I Fixed My TypeScript Setup Issue: Property user does not exist on type Request.