MEMCP(1)
π MEMCP(1) β like, the libmemcached-awesome one, bestie
okay so we're in libmemcached-awesome land and this lil cutie is memcp(1). she copies files into memcached, she's iconic, she's basically cp(1)'s cooler cousin. let's get into it β¨
π SYNOPSIS
memcp [options] --servers <hostname[:port]...> <file...>
Copy files to a collection of memcached servers. that's the whole vibe, fr fr π
πΈ DESCRIPTION
So memcp copies one or more files into memcached(1) servers. literally that's it. it's giving standard UNIX cp(1) energy, just... memcached-ified π¦
and here's the cute part: the key names will be the names of the files, without any directory path. so like, just the filename itself, no folders attached. slay π
β¨ OPTIONS β¨
okay bestie, buckle up, there are a LOT of these and each one is a little gem:
-h,--helpβ Display help. your "what is going on" button π«Ά-V,--versionβ Display version.-q,--quietβ Operate quietly. shhh π€«-v,--verboseβ Operate more verbosely. tell me EVERYTHING.-d,--debugβ See-v|--verbose. yeah, it's the same thing, they're twins π-e,--expire<expiration>β Use expiration seconds (or a UNIX timestamp).-H,--hash<algorithm>β Usealgorithmas key hash algo. seememcached_behavior_t::MEMCACHED_BEHAVIOR_HASH.-s,--servers<list of servers>β Specify the list of servers ashostname[:port][,hostname[:port]...].-n,--non-blockingβ Enable non-blocking operations.-N,--tcp-nodelayβ Disable Nagle's algorithm.-b,--binaryβ Enable binary protocol.-B,--bufferβ Buffer requests.-u,--username<username>β Useusernamefor SASL authentication.-p,--password<password>β Usepasswordfor SASL authentication.-F,--flags<number>β Usenumberas key's flags.-U,--udpβ Enable UDP operation mode.-S,--setβ Issue SET command(s). this is the default mode, main character behavior π see also-A|--addand-R|--replace.-A,--addβ Issue ADD command(s).-R,--replaceβ Issue REPLACE command(s).-.,--basenameβ Use basename of path as key (default). the og π-+,--relativeβ Use relative path (as passed), instead of basename only.-/,--absoluteβ Use absolute path (real path), instead of basename only.
and yes bestie, those last three are literally-.,-+and-/as flags. punctuation flags. they ate and left no crumbs ππ₯
π ENVIRONMENT
MEMCACHED_SERVERSβ Specify a list of servers.
that's it, one env var, and she's doing her job π
π NOTES
π§ PROGRAM PREFIX
so the prefix of this program is variable, which means it can be configured at build time. fancy β¨
usually the client programs of libmemcached-awesome are prefixed with mem, like memcat or memcp.
but here's the plot twist: it can be configured though, to replace the prefix with something else like mc. and in case of that, the client programs of libmemcached-awesome would be called mccat, mccp, etc. respectively. so if your binary is named something weird, that's why, no cap π«Ά
π SEE ALSO
go read those too, iykyk π
and that's the whole page bestie!! πΈ this one's version 1.1, dated Jul 18, 2024 β so like, a lil vintage but still absolutely serving π
β¨ mwah, go copy some files π
π¦ where this page comes from
- epel 10: libmemcached-awesome-tools 1.1.4-5.el10_0 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms