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@ruby-forum.com>:
> 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
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment