CLIENT NO-TOUCH

Since 1.1.0Server

Syntax

CLIENT NO-TOUCH ON|OFF

Accepted for compatibility, and changes nothing. In Redis it stops this connection's commands updating keys' last access time, so that a monitoring or backup tool reading every key does not make them all look recently used to LRU and LFU eviction. KiviDB records access times only while an LRU or LFU maxmemory-policy is selected, and not per client.

ON and OFF are the only arguments. Unlike Redis, CLIENT LIST shows no T flag for it.

Reply

OK, or ERR syntax error for anything other than ON or OFF.

Examples

> CLIENT NO-TOUCH ON
OK
> CLIENT NO-TOUCH x
(error) ERR syntax error