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

CLIENT NO-EVICT

Sets the client eviction mode of the connection.

Usage
CLIENT NO-EVICT enabled
Complexity
O(1)
Since
7.0.0
ACL Categories
@admin, @connection, @dangerous, @slow
Command flags
ALLOW_BUSY, ADMIN, NOSCRIPT, LOADING, STALE, SENTINEL

The CLIENT NO-EVICT command sets the client eviction mode for the current connection.

When turned on and client eviction is configured, the current connection will be excluded from the client eviction process even if we're above the configured client eviction threshold.

When turned off, the current client will be re-included in the pool of potential clients to be evicted (and evicted if needed).

See client eviction for more details.

Replies

RESP2

RESP3