Docs › Commands › ServerDBSIZESince 1.1.0ServerSyntaxDBSIZEFlags: fastACL categories: @fast, @serverArity: 1Returns the number of keys in the current database. Examples > DBSIZE (integer) 0 Related commandsCONFIGDEBUGCOMMANDECHOCLIENTFAILOVERBGSAVEFLUSHALLBGREWRITEAOFFLUSHDB