On Tue, Nov 18, 2008 at 10:54 PM, Norman Elton <[EMAIL PROTECTED]> wrote:
>
> I know I can configure Rails.cache to be backed by memcache, and that
> I can configure multiple memcache servers for load balancing. Is there
> any way to configure multiple instances of Rails.cache? In this case,
> I'd like my application to use a standard memcache server, as well as
> a starling server.
>
> Ideally, something like Rails.cache[:memcache] vs.
> Rails.cache[:starling] would point to different servers.
>
> Thoughts?

Just use your own code rather than Rails.cache.  For one of myprojects I have

QUEUE = MemCache.new("localhost:22122")

And use that from code. No need to do anything with Rails.cache at all.


> Thanks!
>
> Norman
>
> >
>



-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to