OBJECT-IDLETIME(3valkey)

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

πŸ’– OBJECT-IDLETIME β€” ok bestie, let's find out how long this key's been sitting there unbothered πŸ’–

so this is a page from the Valkey Command Manual, section 3valkey, and it's all about OBJECT IDLETIME, which tells you how long it's been since anybody touched a key. literally the "how long have you been rotting in bed" check but for your data. πŸ›Œβœ¨


✨ NAME ✨

object-idletime β€” returns the time since the last access to an object. that's it, that's the whole job, and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

OBJECT IDLETIME key

πŸ¦‹ DESCRIPTION πŸ¦‹

This command returns the time in seconds since the last access to the value stored at key. like, "girl how long has it been since someone checked on you" energy. ⏰

🚨 IMPORTANT BESTIE, READ THIS TWICE: the command is only available when the maxmemory-policy configuration directive is not set to one of the LFU policies. so if you're running LFU, this command is simply not it and you need OBJECT FREQ instead. no cap. 🫢

πŸ‘‘ REPLY πŸ‘‘

πŸ’œ RESP2

One of the following:

πŸ’™ RESP3

One of the following:

(yeah the only difference is Nil vs Null, the protocol glow-up is real, don't @ me) 🌈


⚑ COMPLEXITY ⚑

O(1) β€” constant time, instant, zero effort, main character efficiency. she ate and left no crumbs. πŸ”₯


πŸŽ€ ACL CATEGORIES πŸŽ€

  • @keyspace
  • @read
  • @slow

πŸ“œ HISTORY πŸ“œ

  • Available since: 2.2.3 β€” an icon since day one, honestly. ⭐

🫢 SEE ALSO 🫢

ok so if you liked this one, here's the whole friend group, go say hi:


and that's the whole page bestie, you're officially fluent πŸ’– this was version 9.0.0, dated 2025-10-21, brought to you by the Valkey Command Manual gang. go check on your keys, they miss you. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from