CLIENT-NO-EVICT(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’… 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 β€” @admin AND @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