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 in memcached_behavior_t::MEMCACHED_BEHAVIOR_HASH πŸ”
  • -s, --servers <list of servers> β€” hand over your server list as hostname[: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|--add and -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