Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

CLIENT NO-TOUCH

Last updated
CLIENT NO-TOUCH ON | OFF
Group
Connection
Complexity
O(1)
Arity
3 (exactly, counting the command name)
HotKV Cloud
All plans
On-Premise
no license needed

With CLIENT NO-TOUCH ON, the commands this connection runs leave the keys’ last access time as it was. Use it for monitoring, auditing or backup tools that read many keys: without it, their reads make cold keys look recently used, which skews OBJECT IDLETIME and the choices of an LRU or LFU maxmemory-policy.

OFF restores normal behaviour. While it is on, the connection shows the T flag in CLIENT LIST.

Case Reply (RESP2 and RESP3)
ON or OFF Simple string OK
Any other value Error ERR syntax error
127.0.0.1:6379> OBJECT IDLETIME report:2026-09
(integer) 5400
127.0.0.1:6379> CLIENT NO-TOUCH ON
OK
127.0.0.1:6379> GET report:2026-09
"..."
127.0.0.1:6379> OBJECT IDLETIME report:2026-09
(integer) 5400

Same as Redis 7.2 and later, and Valkey 8. Unlike Redis, RESET does not turn it off.

CLIENT NO-EVICT, OBJECT IDLETIME, TOUCH, memory and eviction