NAME
App::derived::Plugin::Memcached - memcached-protocol server for derived
SYNOPSIS
$ derived -MMemcahced,port=12306 CmdsFile
DESCRIPTION
This plugin has a memcached-protocol server. You can get some status from any memcached client.
ARGUMENTS
- port:Int
-
Port number to bind
- host:String
-
Host name or Address to bind
- timeout:Int
-
Timeout seconds to read request. default 10.
CLIENT SAMPLE
You can access to data by any memcached client.
my
$memcached
= Cache::Memcached::Fast->new({
servers
=> [
qw/localhost:12306/
],
});
say
$memcached
->get(
'slowqueris'
);
# only per seconds value.
say
$memcached
->get(
'slowqueris:latest'
);
# only latest value.
say
$memcached
->get(
'slowqueris:full'
);
#JSON formated data include raw values
SEE ALSO
<drived>, <App::derived::Plugin> for writing plugins
AUTHOR
Masahiro Nagano <kazeburo@gmail.com>
LICENSE
Copyright (C) Masahiro Nagano
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.