Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cache::memcached::managed::multi(3pm) [debian man page]

Cache::Memcached::Managed::Multi(3pm)			User Contributed Perl Documentation		     Cache::Memcached::Managed::Multi(3pm)

NAME
Cache::Memcached::Managed::Multi - multiple Cache::Memcache::Managed objects SYNOPSIS
use Cache::Memcached::Managed::Multi; my $multi = Cache::Memcached::Managed::Multi->new( @managed ); DESCRIPTION
Provides the same API as Cache::Memcached::Managed, but applies all methods called to all of the objects specified, except for new and objects. CONTEXT
All methods are called on all of the Cache::Memcached::Managed objects in the same context (list, scalar or void) in which the method is called on the Cache::Memcached::Managed::Multi object. The return value differs in format depending on the context also: scalar my $listref = $multi->method; print "Result: @{$listref} "; When called in scalar context, a list ref with scalar values is returned in the same order in which the objects are used (which is determined by the order in which they were supplied with new and returned by objects.. list my @listref = $multi->method; print "Result $_: @{$listref[$_]} " foreach 0..$#listref; When called in list context, a list of list references is returned in the same order in which the objects are used (which is determined by the order in which they were supplied with new and returned by objects. void $multi->method; When called in void context, nothing is returned (not strangely enough ;-). SPECIFIC CLASS METHODS
There is only one specific class method. new my $multi = Cache::Memcached::Managed::Multi->new( @managed ); Create an object containing multiple Cache::Memcached::Managed objects. Returns the instantiated object. SPECIFIC INSTANCE METHODS
objects my @managed = $multi->objects; Returns the list of instantiated Cache::Memcached::Managed objects that the object is a proxy for. AUTHOR
Elizabeth Mattijsen COPYRIGHT
(C) 2005 - 2006 BOOKINGS (C) 2007 BOOKING.COM This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. perl v5.14.2 2012-05-24 Cache::Memcached::Managed::Multi(3pm)

Check Out this Related Man Page

CHI::Driver::Memcached(3pm)				User Contributed Perl Documentation			       CHI::Driver::Memcached(3pm)

NAME
CHI::Driver::Memcached -- Distributed cache via memcached (memory cache daemon) VERSION
version 0.14 SYNOPSIS
use CHI; my $cache = CHI->new( driver => 'Memcached', # or 'Memcached::Fast', or 'Memcached::libmemcached' namespace => 'products', servers => [ "10.0.0.15:11211", "10.0.0.15:11212", "/var/sock/memcached", "10.0.0.17:11211", [ "10.0.0.17:11211", 3 ] ], debug => 0, compress_threshold => 10_000, ); DESCRIPTION
A CHI driver that uses Cache::Memcached to store data in the specified memcached server(s). CHI::Driver::Memcached::Fast and CHI::Driver::Memcached::libmemcached are also available as part of this distribution. They work with other Memcached clients and support a similar feature set. Documentation for all three modules is presented below. CONSTRUCTOR OPTIONS
Namespace, appended with ":", is passed along to the Cached::Memcached::* constructor, along with any constructor options not recognized by CHI - for example servers, compress_threshold and debug. If you need more control over the options passed to Cache::Memcached::*, you may specify a hash directly in "memd_params". METHODS
Besides the standard CHI methods: memd Returns a handle to the underlying Cache::Memcached::* object. You can use this to call memcached-specific methods that are not supported by the general API, e.g. $self->memd->incr("key"); my $stats = $self->memd->stats(); UNSUPPORTED METHODS
These standard CHI methods cannot currently be supported by memcached, chiefly because there is no way to get a list of stored keys. dump_as_hash clear get_keys get_namespaces is_empty purge SUPPORT AND DOCUMENTATION
Questions and feedback are welcome, and should be directed to the perl-cache mailing list: http://groups.google.com/group/perl-cache-discuss Bugs and feature requests will be tracked at RT: http://rt.cpan.org/NoAuth/Bugs.html?Dist=CHI-Driver-Memcached The latest source code can be browsed and fetched at: http://github.com/jonswar/perl-chi-driver-memcached/tree/master git clone git://github.com/jonswar/perl-chi-driver-memcached.git AUTHOR
Jonathan Swartz SEE ALSO
CHI, Cache::Memcached, CHI::Driver::Memcached::Fast, CHI::Driver::Memcached::libmemcached COPYRIGHT &; LICENSE Copyright (C) 2007 Jonathan Swartz. CHI::Driver::Memcached is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Jonathan Swartz. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2011-12-16 CHI::Driver::Memcached(3pm)
Man Page