CLIENT-NO-EVICT(3valkey)
π CLIENT-NO-EVICT π
okay bestie, welcome to the Valkey Command Manual β this one lives in section 3valkey and it's literally the "don't pick me, I'm too cute to evict" button π«Ά
β¨ NAME β¨
client-no-evict β sets the client eviction mode of the connection. that's it, that's the whole vibe πΈ
π SYNOPSIS π
CLIENT NO-EVICT <ON | OFF>
π DESCRIPTION π
The CLIENT NO-EVICT command sets the valkey-clients(7) client eviction mode for the current connection. not all connections, not somebody else's β yours. main character energy only π
When you turn it 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. like, the threshold is screaming and this connection is just sipping its little drink, unbothered πβ¨
When you turn it off, the current client will be re-included in the pool of potential clients to be evicted (and evicted if needed). welcome back to the group chat, you might get kicked π
See valkey-clients(7) client eviction for more details. iykyk, go read it, it's giving lore π
π¬ REPLY π¬
valkey-protocol(7) Simple string reply: OK.
β‘ COMPLEXITY β‘
O(1) β constant time, no cap. instant. iconic. zero notes π
π ACL CATEGORIES π
@admin@connection@dangerous@slow
bestie these categories are doing a lot of talking β@adminAND@dangerous? she's got range, but she also needs the right permissions. be careful who you hand this to π
π HISTORY π
- Available since:
7.0.0
π SEE ALSO π
auth(3valkey), client(3valkey), client-caching(3valkey), client-capa(3valkey), client-getname(3valkey), client-getredir(3valkey), client-help(3valkey), client-id(3valkey), client-import-source(3valkey), client-info(3valkey), client-kill(3valkey), client-list(3valkey), client-no-touch(3valkey), client-pause(3valkey), client-reply(3valkey), client-setinfo(3valkey), client-setname(3valkey), client-tracking(3valkey), client-trackinginfo(3valkey), client-unblock(3valkey), client-unpause(3valkey), echo(3valkey), hello(3valkey), ping(3valkey), quit(3valkey), reset(3valkey), select(3valkey)
that's the whole page bestie, go forth and not get evicted πβ¨π¦
version 9.0.0 Β· dated 2025-10-21 Β· brought to you by the CLIENT-NO-EVICT(3valkey) page itself, slaying in the Valkey Command Manual π
π¦ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 Β· CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms