CLIENT NO-EVICT
Syntax
CLIENT NO-EVICT <ON | OFF>
- Available since:
- Redis Open Source 7.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@admin,@slow,@dangerous,@connection, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
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.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
One of the following:
- Simple string reply:
OKif the command was successful. - Simple error reply in these cases: wrong number of or invalid arguments.