Ubic::Service::Memcached - memcached as ubic service
version 2.02
use Ubic::Service::Memcached; return Ubic::Service::Memcached->new({ port => 1234, pidfile => "/var/run/my-memcached.pid", maxsize => 500, });
This module allows you to run memcached using Ubic.
Its status method tries to store Ubic::Service::Memcached-testkey key in memcached to check that service is running.
Ubic::Service::Memcached-testkey
Constructor.
Parameters:
Integer port number.
Full path to pidfile. Pidfile will be managed by Ubic::Daemon.
Ubic::Daemon
You can skip this parameter if you have /module/Ubic/Service/Memcached/pid_dir morpheus option configured. In this case pidfile will be located in that directory and have name $port.pid.
/module/Ubic/Service/Memcached/pid_dir
$port.pid
Max memcached memory size in megabytes. Default is 640MB.
Enable memcached logging.
verbose=1 turns on basic error and warning logs (i.e. it sets -v switch),
verbose=1
-v
verbose=2 turns on more detailed logging (i.e. it sets -vv switch).
verbose=2
-vv
If specified, memcached will be configured to write logs to given file.
Optional log with ubic-specific messages.
Number of max simultaneous connections (-c memcached option).
-c
Any argv parameters to memcached binary which are not covered by this module's API.
As usual, you can specify custom user and group values. Default is root:root.
root:root
Vyacheslav Matyukhin <me@berekuk.ru>
This software is copyright (c) 2012 by Yandex LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Ubic::Service::Memcached, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic::Service::Memcached
CPAN shell
perl -MCPAN -e shell install Ubic::Service::Memcached
For more information on module installation, please visit the detailed CPAN module installation guide.