Unfortunately I don't think Mason's conf parser is smart enough to know that's 
an arrayref. You might need to bite the bullet and write a small handler.pl, or 
initialize Mason caching somewhere in your app.

On Oct 17, 2011, at 11:25 AM, Philip Cooper wrote:

> 
> 
> I'm attempting to switch from Mason file cache to Memcached.  My 
> httpd.conf settings are as below:
> 
>  PerlSetVar   MasonDataCacheApi chi
>  PerlAddVar   MasonDataCacheDefaults "driver => Memcached"
>  PerlAddVar   MasonDataCacheDefaults "servers=>[ 'foo-1.bar.com:11211', 
> 'foo-2.bar.com:11211' ]"
>  PerlAddVar   MasonDataCacheDefaults "debug => 1"
> 
> My problem is that the server argument in Memcached.pm come through as a 
> string '[ 'foo-1.bar.com:11211', 'foo-2.bar.com:11211' ]' rather than 
> array, and the connection the the memcached servers fail.
> 
> what am I doing wrong?
> 
> thanks,
> Philip
> 
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to