Sunday, August 30, 2009

Re: Memcached Settings

This is what I'm using. It's not yet in production and may change
somewhat, but this is the general idea.

Cache::config(
'default',
array(
'engine' => 'Memcache',
'duration'=> 3600,
'probability'=> 100,
'prefix' => Inflector::slug(APP_DIR) . '_',
'servers' => array('127.0.0.1:11211'),
'compress' => false
)
);

On Sun, Aug 30, 2009 at 2:07 PM, Neelesh<neelsama@gmail.com> wrote:
>
> In CakePHP doc, I read about Memcached support included in
> CacheEngines. AFAIK, memcached is a daemon. To be able to use it, we
> will need to use its IP Address and Port number.
>
> Can you help me figure out how I am going to set this is CakePHP?
>
> Thanks
> Neelesh
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: