What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

CLIENT NO-TOUCH

Controls whether commands sent by the client affect the LRU/LFU of accessed keys.

Usage
CLIENT NO-TOUCH enabled
Complexity
O(1)
Since
7.2.0
ACL Categories
@connection, @slow
Command flags
ALLOW_BUSY, NOSCRIPT, LOADING, STALE

The CLIENT NO-TOUCH command controls whether commands sent by the client will alter the LRU/LFU of the keys they access.

When turned on, the current client will not change LFU/LRU stats, unless it sends the TOUCH command.

When turned off, the client touches LFU/LRU stats just as a normal client.

Replies

RESP2

RESP3