On Mon, 13 Sep 2004 20:07:34 +0100
"David R. Baird" <[EMAIL PROTECTED]> wrote:
Hi David,
> Looks good. Can I suggest that the 'servers' option takes a data
> structure, rather than a single formatted string? Something like
>
> tie %session, 'Apache::Session::Memcached', $sid, {
> Servers => { '10.0.0.1' => '20000',
> '10.0.0.2' => '20000',
> }
> };
Cache::Memcached 'servers' parameter is an arrayref of values, each of which is
either a scalar of the form IP:port or an arrayref of the former and an integer
weight value. I.e.:
'servers' => [ '10.0.0.1:12000', '10.0.0.2:12000,
'10.0.0.3:12000', ['10.0.0.4:12000',3] ]
So, I think that A::S::Memcached could take (also) directly the Cache::Memcached
'servers' param format.
Note that the mapping of all Cache::Memcached constructor parameters is still
incomplete :-)
Thanks for suggestions ;-)
by
- Enrico