MEMCP(1)
π MEMCP(1) π
okay so bestie, welcome to memcp, straight out of libmemcached-awesome (yes that's the manual name, it's giving β¨documentationβ¨). buckle up, we're putting files into memcached servers and it's gonna be iconic π
πΈ SYNOPSIS πΈ
memcp [options] --servers <hostname[:port]...> <file...>
Copy files to a collection of memcached servers. that's it. that's the vibe. π
π¦ DESCRIPTION π¦
so memcp takes one or more files and yeets them into memcached(1) servers. think of it like the standard UNIX cp(1) command but make it network π« β literally the same energy, different destination.
and the key names? the key names will be the names of the files, without any directory path. so path/to/thing.txt shows up as thing.txt. no cap. π«Ά
β¨ OPTIONS β¨
-h,--helpβ show the help. we love a supportive queen π-V,--versionβ spill the version, diva π-q,--quietβ operate quietly. silent but slaying π€«-v,--verboseβ operate more verbosely. tell me EVERYTHING bestie π£οΈ-d,--debugβ same thing as-v|--verbose. yes really, go look π-e,--expire <expiration>β set expiration in seconds (or as a UNIX timestamp). clock's ticking β°-H,--hash <algorithm>β use algorithm as the key hash algo. full deets inmemcached_behavior_t::MEMCACHED_BEHAVIOR_HASHπ-s,--servers <list of servers>β hand over your server list ashostname[:port][,hostname[:port]...]. comma-separated cuties π-n,--non-blockingβ non-blocking operations on, no waiting around π¨-N,--tcp-nodelayβ disable Nagle's algorithm. no buffering delay, we move fast β‘-b,--binaryβ binary protocol activated π§¬-B,--bufferβ buffer those requests, batch queen π¦-u,--username <username>β username for SASL authentication πͺͺ-p,--password <password>β password for SASL authentication π€-F,--flags <number>β use number as the key's flags π·οΈ-U,--udpβ UDP operation mode, chaotic transport era π-S,--setβ issue SET command(s). this is the default mode, periodt. also peep-A|--addand-R|--replaceπ-A,--addβ issue ADD command(s) β-R,--replaceβ issue REPLACE command(s) π-.,--basenameβ use the basename of the path as the key (this is the default) π§-+,--relativeβ use the relative path (as passed) instead of basename only π€οΈ-/,--absoluteβ use the absolute path (real path) instead of basename only πΊοΈ
π ENVIRONMENT π
MEMCACHED_SERVERSβ specify a list of servers. yes you can just set it and forget it π
π NOTES π
π PROGRAM PREFIX π
so the prefix of this program is variable, meaning it can be configured at build time. cute, right?
usually the client programs of libmemcached-awesome are prefixed with mem, like memcat or memcp π±
but it can be configured though to swap that prefix for something else like mc, and in that case the client programs of libmemcached-awesome would be called mccat, mccp, etc. respectively. same queens, different name tags π
β SEE ALSO β
ngl bestie, if you got this far you're basically a Unix main character now π
okay bye, love you, this was version 1.1 dated Jul 24, 2026 and it ATE. no crumbs. πβ¨ππ¦
π¦ where this page comes from
- ubuntu stonking: libmemcached-tools 1.1.4-1.2build1 Β· BSD-3-clause-TangentOrg
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms