# EXISTS Returns if `key` exists. The user should be aware that if the same existing key is mentioned in the arguments multiple times, it will be counted multiple times. So if `somekey` exists, `EXISTS somekey somekey` will return 2. ## Examples SET key1 "Hello" EXISTS key1 EXISTS nosuchkey SET key2 "World" EXISTS key1 key2 nosuchkey ## Return information {{< multitabs id="exists-return-info" tab1="RESP2" tab2="RESP3" >}} [Integer reply](../../develop/reference/protocol-spec#integers): the number of keys that exist from those specified as arguments. -tab-sep- [Integer reply](../../develop/reference/protocol-spec#integers): the number of keys that exist from those specified as arguments.