Your company here ā€” click to reach over 10,000 unique daily visitors

memcp - Man Page

libmemcached Documentation


memcp [options] --servers <hostname[:port]...> <file...>

Copy files to a collection of memcached servers.


memcp copies one or more files into memcached(1) servers. It is similar to the standard UNIX cp(1) command.

The key names will be the names of the files, without any directory path.



Display help.


Display version.


Operate quietly.


Operate more verbosely.


See -v|--verbose.

-e|--expire <expiration>

Use expiration seconds (or a UNIX timestamp).

-H|--hash <algorithm>

Use algorithm as key hash algo. See memcached_behavior_t::MEMCACHED_BEHAVIOR_HASH.

-s|--servers <list of servers>

Specify the list of servers as hostname[:port][,hostname[:port]...].


Enable non-blocking operations.


Disable Nagle's algorithm.


Enable binary protocol.


Buffer requests.

-u|--username <username>

Use username for SASL authentication.

-p|--password <password>

Use password for SASL authentication.

-F|--flags <number>

Use number as key's flags.


Enable UDP operation mode.


Issue SET command(s). This is the default mode. See also -A|--add and -R|--replace.


Issue ADD command(s).


Issue REPLACE command(s).


Use basename of path as key (default).


Use relative path (as passed), instead of basename only.


Use absolute path (real path), instead of basename only.



Specify a list of servers.


Program Prefix

The prefix of this program is variable, i.e. it can be configured at build time.

Usually the client programs of libmemcached-awesome are prefixed with mem, like memcat or memcp.

It can be configured, though, to replace the prefix with something else like mc, in case of that, the client programs of libmemcached-awesome would be called mccat, mccp, etc. respectively.

See Also

memcached(1) libmemcached(3) memcached_behavior(3)

Referenced By


Jan 25, 2024 1.1 libmemcached-awesome