ETYPE

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Get the data type of a key

Usage: etype key
data type : string, list, set, zset, hash, stream

Example

Command>etype key1
Result>string
Command>etype user01
Result>string,list ℹ️ If user01 is stored in both string and list, two data types are returned.


Syntax

ETYPE key

  • Available since Ent 8.1.0.
  • Time complexity is O(1).

<< DBALL ETYPE EKEYS >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.