Re: Re: Re: Re: Re: Memcache

Jeffrey L. Taylor
Thu, 29 Jul 2010 13:51:46 -0000

Prachi,
  I can''t help you there, I''ve used memcache only for caching
HTML fragments.
There are several fine tutorials on using memcache on the Web, including using
it to cache database records.  Try railscasts.com, their screencasts are
excellent.

Jeffrey

Quoting Prachi Tripathi
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:
> Hi,
>
> I guess you write. I used memcache the rails way.
>
> I have one more doubt. I want a write through cache mechanism. How to
> enable that?
>
> Is there some configuration?
>
> Also, found that cache-money is a write through as well as read only
> cache. I wanted to know how to configure it to behave as write through
> ie, any new entry should first be made to cache and then to the backing
> store. In my case the database.
>
> The below configuration:
> :readonly => false,
> makes cache write enabled, but does it also write it to the backing
> store?
>
> I want a write through cache policy
>
>
> Jeffrey L. Taylor wrote:
> > You are fighting Rails, in my experience not a time effective thing to
> > do.
> > Why do you want use Rails and not do it the Rails way?
> >
> > Jeffrey