TYPE
TYPE key
@keyspace, @read, @fast, Returns the string representation of the type of the value stored at key. The different types that can be returned are: string, list, set, zset, hash and stream.
Simple string reply: type of key, or none when key does not exist.
SET key1 "value" LPUSH key2 "value" SADD key3 "value" TYPE key1 TYPE key2 TYPE key3
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/type/