What are the data types of key in Redis? (not value)

for example,
We all know that there are five data types of value:

  • String
  • list
  • hash
  • set
  • sorted set

so what are the data types of key in Redis?

Mar.15,2021

The key key of

Redis can only be a string.

you can refer to this document Redis .


key can only be a string. For more information, please see the redis official documentation.

Menu