TOUCH

Touches the supplied keys and reports how many exist.

Keys & expiration · Example verified

Syntax covered here

TOUCH key [key ...]

The case verifies the count for present and missing keys; access-metadata changes are not measured.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> SET sample value
"OK"
# connection: default
> TOUCH sample missing
1