-
-

memcp - Copy data to a server¶

-

Copies files to a collection of memcached servers

+
+

memcp¶

SYNOPSIS¶

-

memcp [options] [file] [server]

+

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

+

Copy files to a collection of memcached servers.

DESCRIPTION¶

-

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.

+

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.

OPTIONS¶

-

You can specify servers via the option:

+
+
+--help¶
+

Display help.

+
+ +
+
+--version¶
+

Display version.

+
+ +
+
+--quiet¶
+

Operate quietly.

+
+ +
+
+--verbose¶
+

Operate more verbosely.

+
+ +
+
+--debug¶
+

See --verbose.

+
+
---servers¶
-
+--servers <list of servers>¶ +

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

+
-

or via the environment variable:

-
-
-`MEMCACHED_SERVERS`¶
-
+
+
+--binary¶
+

Enable binary protocol.

+
-

If you do not specify either these, the final value in the command line list is the name of a server(s).

-

For a full list of operations run the tool with the option:

-
---help¶
-
+
+--expire <expiration>¶
+

Use expiration seconds (or a UNIX timestamp).

+
+ +
+
+--flag <number>¶
+

Use number as flag.

+
+ +
+
+--hash <algorithm>¶
+

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

+
+ +
+
+--username <username>¶
+

Use username for SASL authentication.

+
+ +
+
+--password <password>¶
+

Use password for SASL authentication.

+
+ +
+
+--udp¶
+

Enable UDP operation mode.

+
+ +
+
+--buffer¶
+

Enable internal buffering of commands.

+
+ +
+
+--set¶
+

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

+
+ +
+
+--add¶
+

Issue ADD command(s).

+
+ +
+
+--replace¶
+

Issue REPLACE command(s).

+
-
-

HOME¶

-

To find out more information please check: -http://libmemcached.org/

-
-
-

AUTHOR¶

-

Brian Aker, <brian@tangent.org>

-

Mark Atwood, <mark@fallenpegasus.com>

+
+

ENVIRONMENT¶

+
+
+MEMCACHED_SERVERS¶
+

Specify the list of servers.

+
+
@@ -745,10 +327,10 @@ without any directory path.

@@ -757,7 +339,7 @@ without any directory path.

- © Copyright 2011-2020 Brian Aker, Michael Wallner + © Copyright