memcp — libmemcached-awesome 1.1.2 documentation

# memcp

## SYNOPSIS

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.

## OPTIONS

--help

  Display help.

--version

  Display version.

--quiet

  Operate quietly.

--verbose

  Operate more verbosely.

--debug

  See `--verbose`.

--servers <list of servers>

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

--binary

  Enable binary protocol.

--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).

## ENVIRONMENT

MEMCACHED_SERVERS

  Specify the list of servers.

## SEE ALSO

- C/C++ Client Library for memcached

- libmemcached Configuration

- Behaviors of the library