MEMCACHED-TOOL(1)
π MEMCACHED-TOOL(1) π
okay bestie, so this is a page from the General Commands Manual and it's literally about memcached-tool, which is a whole vibe. buckle up π
β¨ NAME β¨
memcached-tool β the stats-and-management tool for memcached, no cap π
πΈ SYNOPSIS πΈ
memcached-tool <host[:port] | /path/to/socket> [mode]
that's it. that's the whole thing. two lil arguments and you're slaying π¦
π DESCRIPTION π
so memcached-tool is a Perl script β yes, Perl, she's vintage and iconic β and her whole job is printing statistics from a memcached instance that's already running. π§
the first parameter tells her where the daemon lives. you can give her either:
- a hostname, optionally followed by the port number (and if you don't say a port, the default is
11211, periodt), or - a path to a UNIX domain socket.
the second parameter is the mode β aka which flavour of tool you want her to run. main character energy, choose wisely π
π₯ MODES π₯
π display
prints slab class statistics. this is the default mode if you don't specify a mode at all β she just does it automatically, generous queen.
the columns she prints are:
#β the number of the slab class.Item_Sizeβ how much space each chunk uses. one item uses one chunk of the appropriate size. one item, one chunk, that's the rule π«Max_ageβ the age of the oldest item in the LRU.Pagesβ total number of pages allocated to the slab class.Countβ how many items are presently stored in this class. β οΈ heads up: expired items are not automatically excluded, so don't come for her about the numbers, she's telling the truth as she sees it.Full?βYesif there are no free chunks at the end of the last allocated page.Evictedβ the number of times an item had to be evicted from the LRU before it expired. πEvict_Timeβ seconds since the last access for the most recent item evicted from this class. it's giving "how long ago did we lose her" π°οΈOOMβ the number of times the underlying slab class was unable to store a new item. out of memory, out of luck π
β stats
prints the general-purpose statistics of the daemon. each line has the name of the statistic and its value. simple. clean. iconic. β¨
π«Ά dump [limit]
makes a partial dump of the cache, written in the add statements of the memcached protocol. π
and if limit is given and it's a strictly positive integer, then the dump is limited to that number of items. no limit? no cap on the dump. iykyk π
π SEE ALSO π
π AUTHOR π
the memcached-tool script was written by Brad Fitzpatrick <brad@danga.com> β king behaviour, we love to see it π
and that's the whole page, bestie!! π this little love letter was dated Jul 2, 2013, and it's filed under General Commands Manual as MEMCACHED-TOOL(1). go forth and check your slabs, mwah ππ¦πΈ
π¦ where this page comes from
- arch rolling: memcached 1.6.45-1 Β· BSD-3-Clause
- centos-stream 10: memcached 1.6.23-8.el10 Β· BSD-3-clause AND Zlib AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
- centos-stream 9: memcached 1.6.9-8.el9 Β· BSD
- fedora 43: memcached 1.6.39-2.fc43 Β· BSD-3-clause AND Zlib AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 43: memcached 1.6.45-1.fc43 Β· BSD-3-clause AND Zlib AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: memcached 1.6.40-2.fc44 Β· BSD-3-clause AND Zlib AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: memcached 1.6.45-1.fc44 Β· BSD-3-clause AND Zlib AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms