App-Memcached-CLI
view release on metacpan or search on metacpan
lib/App/Memcached/CLI/Help.pm view on Meta::CPAN
Description:
Put VALUE before existing data which has specified KEY.
Usage:
> prepend <KEY> <VALUE>
> prepend mykey MyPrefix
EODESC
},
+{
command => 'cas',
summary => 'Set data by KEY VALUE with CAS',
description => <<'EODESC',
Description:
Store data as specified (KEY, VALUE) if CAS of data is not modified.
Usage:
> cas <KEY> <VALUE> <CAS> [<EXPIRE> [<FLAGS>]]
> cas mykey1 MyValue1 1
> cas mykey2 MyValue2 26 0 # Never expires. Default
> cas mykey3 MyValue3 355 120 1
EODESC
},
+{
command => 'touch',
summary => 'Update data with new EXPIRE',
description => <<'EODESC',
Usage:
> touch <KEY> <EXPIRE>
> touch foo 300 # will expire in 5 min
> touch bar 0 # will never expire
EODESC
},
+{
command => 'incr',
summary => 'Add numeric VALUE for a data',
description => <<'EODESC',
Usage:
> incr <KEY> <VALUE>
> incr foo 1
EODESC
},
+{
command => 'decr',
summary => 'Reduce numeric VALUE from a data',
description => <<'EODESC',
Usage:
> decr <KEY> <VALUE>
> decr foo 1
EODESC
},
+{
command => 'delete',
summary => 'Delete data by KEY',
description => <<'EODESC',
Usage:
> delete <KEY>
EODESC
},
+{
command => 'flush_all',
summary => 'Invalidate whole data',
description => <<'EODESC',
Usage:
> flush_all [<DELAY>]
> flush_all # Invalidate immediately
> flush_all 60 # Invalidate after 60 seconds
EODESC
},
+{
command => 'call',
summary => 'Execute any command',
description => <<'EODESC',
Description:
This command executes any commands given as arguments.
Usage:
> call version
> call get myKey
> call stats conns
EODESC
},
);
1;
__END__
=encoding utf-8
=head1 NAME
App::Memcached::CLI::Help - Utility to show commands help
=head1 SYNOPSIS
use App::Memcached::CLI::Help;
my @command_info = @App::Memcached::CLI::Help::COMMANDS_INFO;
=head1 DESCRIPTION
This package provides utility for commands help.
=head1 LICENSE
Copyright (C) IKEDA Kiyoshi.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=head1 AUTHOR
IKEDA Kiyoshi E<lt>progrhyme@gmail.comE<gt>
=cut
( run in 1.632 second using v1.01-cache-2.11-cpan-39bf76dae61 )