Docs › Commands › KeysEXISTSSince 1.1.0KeysSyntaxEXISTS key [key ...]Flags: fast, readonlyACL categories: @fast, @generic, @keyspace, @readArity: -2Counts how many of the given keys exist. A key given twice is counted twice. Reply The count. Examples > SET a 1 OK > EXISTS a a missing (integer) 2 Related commandsDUMPEXPIREDELEXPIREATCOPYEXPIRETIMEKEYSMOVEOBJECTPERSIST