App-Memcached-CLI
view release on metacpan or search on metacpan
script/memcached-cli view on Meta::CPAN
Generates random sample data and SET all of them.
By default, it generates 100 data whose length is between 1B and 1000kB with prefix "memcached-cli:sample";
=item B<get> I<KEY1> [I<KEY2> ...]
Gets items in memcached by specified I<KEYs> and shows their data.
=item B<gets> I<KEY1> [I<KEY2> ...]
Gets items with I<CAS> data in memcached by specified I<KEYs> and shows their
data.
=item B<set> I<KEY> I<VALUE> [I<EXPIRE> [I<FLAGS>]]
Stores data into memcached by specified I<KEY>, I<VALUE> and optional I<EXPIRE>
and I<FLAGS>.
=item B<add> I<KEY> I<VALUE> [I<EXPIRE> [I<FLAGS>]]
Stores data into memcached by specified I<KEY>, I<VALUE> and optional I<EXPIRE>
and I<FLAGS> only when there is NO data with the same I<KEY> in the server.
=item B<replace> I<KEY> I<VALUE> [I<EXPIRE> [I<FLAGS>]]
Stores data into memcached by specified I<KEY>, I<VALUE> and optional I<EXPIRE>
and I<FLAGS> only when there IS data with the same I<KEY> in the server.
=item B<append> I<KEY> I<VALUE>
Appends I<VALUE> after existing data in memcached which has specified I<KEY>.
=item B<prepend> I<KEY> I<VALUE>
Puts I<VALUE> before existing data in memcached which has specified I<KEY>.
=item B<cas> I<KEY> I<VALUE> I<CAS> [I<EXPIRE> [I<FLAGS>]]
Stores data into memcached by specified I<KEY>, I<VALUE> and optional I<EXPIRE>
and I<FLAGS> only when I<CAS> of data is not changed from specified I<CAS> value.
=item B<touch> I<KEY> I<EXPIRE>
Update data expiration time with specified I<KEY> and I<EXPIRE>.
=item B<incr> I<KEY> I<VALUE>
Add numeric I<VALUE> for a data with specified I<KEY>.
=item B<decr> I<KEY> I<VALUE>
Subtract numeric I<VALUE> from a data with specified I<KEY>.
=item B<delete> I<KEY>
Deletes one item in memcached by specified I<KEY>.
=item B<flush_all|flush> [I<DELAY>]
Invalidates all data in memcached by C<flush_all> command.
With I<DELAY> option, invalidation is delayed for specified seconds.
See official documentation of I<memcached> for details.
=item B<call> I<COMMAND> [I<ARGS> ...]
Executes any commands given as arguments.
With this command, you can execute any command against Memcached including what
is not implemented as normal commands in this program.
Here are some examples:
> call stats conns
> call slabs reassign 6 10
> call flush_all
LIMITATION:
Multi-lined queries like C<set> are not supported.
=item B<version>
Shows memcached server version.
=item B<quit|exit|\q>
Exits program in interactive mode.
=item B<help|\h> [I<COMMAND>]
Shows available I<COMMANDs> and summary of their usage.
With optional I<COMMAND> argument, shows detailed information of it.
=back
=head1 OPTIONS
=over 4
=item B<-t|--timeout=Int>
Sets connection timeout. Default is 1 seconds.
=item B<-d|--debug>
Shows debug logs.
=back
=head1 SEE ALSO
L<App::Memcached::CLI::Main>,
B<memcached(1)>,
L<http://www.memcached.org/>
=head1 AUTHORS
( run in 0.480 second using v1.01-cache-2.11-cpan-39bf76dae61 )