COMMAND-COUNT(3valkey)

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

πŸ’… COMMAND-COUNT πŸ’…

hiii bestie welcome to a page from the Valkey Command Manual β€” the main character here is command-count(3valkey) and she is, and I say this with love, extremely simple. lowercase name, section 3, no drama, no cap. πŸŽ€


✨ NAME ✨

command-count β€” returns a count of commands. that's it. that's the whole personality. 🫢


🌸 SYNOPSIS 🌸

COMMAND COUNT

look at her. two words. she ate and left no crumbs. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so what this does is: it returns the total number of commands in this Valkey server. like, this server, the one you're talking to right now. not some other server. this one. πŸ‘‘


πŸ“¬ REPLY πŸ“¬

valkey-protocol(7) Integer reply: the number of commands returned by COMMAND. πŸ’–


⚑ COMPLEXITY ⚑

O(1) β€” constant time, no cap. it's not out here scanning anything, she just knows. ✨


πŸ” ACL CATEGORIES πŸ”

@connection @slow

(and yes, @slow is right there next to a constant-time command, i don't make the rules bestie πŸ™ˆ)


πŸ“œ HISTORY πŸ“œ

  • Available since: 2.8.13

she's been around. lowkey a legend. 🌈


πŸ“ EXAMPLES πŸ“

127.0.0.1:6379> COMMAND COUNT
(integer) 241

that's it. that's the example. 241 commands, allegedly, on that particular server. iconic. ⭐


πŸ‘€ SEE ALSO πŸ‘€

the whole group chat, fr fr β€” go read these when you're done here:


this page is living in version 9.0.0 and it was dated 2025-10-21. thank u for coming to my ted talk, go count some commands, mwah πŸ’œπŸ§šπŸ’…
πŸ“¦ where this page comes from