Key Management
Choose a command for its syntax, arguments, results and example. See Query Operations and Data Writes for execution and Command Format and Parameters for placeholders.
Find and Scan Keys
EXISTS · TYPE
KEYS · SCAN · RANDOMKEY
Copy, Rename and Delete
COPY · RENAME · RENAMENX
DEL · UNLINK
Set Key Expiration
EXPIRE · PEXPIRE
EXPIREAT · PEXPIREAT
Inspect and Remove Key Expiration
TTL · PTTL
EXPIRETIME · PEXPIRETIME · PERSIST
Encoding and Access Information
OBJECT ENCODING · OBJECT REFCOUNT
OBJECT FREQ · OBJECT IDLETIME · TOUCH