I know I''m inviting the full wrath of a lot of purists but I thought I''d ask anyway. Is there a way to store a model (activerecord based one) straight into memcached and skip the database all together? Basically I''d like to make a bunch of web service calls, instantiate some objects from the results (like :user, :user_interests, :user_friends, etc based on the normal Rails associations) write it to memcache and read it back Let the thrashing begin .... GP -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
It''s not a guaranteed storage area. If that''s fine, then I see no problem with it. Jason On Fri, Mar 21, 2008 at 6:45 PM, Grayson Piercee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I know I''m inviting the full wrath of a lot of purists but I thought I''d > ask anyway. Is there a way to store a model (activerecord based one) > straight into memcached and skip the database all together? > > Basically I''d like to make a bunch of web service calls, instantiate > some objects from the results (like :user, :user_interests, > :user_friends, etc based on the normal Rails associations) write it to > memcache and read it back > > Let the thrashing begin .... > > GP > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Grayson Piercee wrote:> I know I''m inviting the full wrath of a lot of purists but I thought I''d > ask anyway. Is there a way to store a model (activerecord based one) > straight into memcached and skip the database all together? > > Basically I''d like to make a bunch of web service calls, instantiate > some objects from the results (like :user, :user_interests, > :user_friends, etc based on the normal Rails associations) write it to > memcache and read it backSo where do you get the data from? How do the models know what attributes they have? How long does this data need to persist? =matthew -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Cool, not the question is how? Do I create some non-ActiveRecord classes, load the web service results into those, put them into an array and give it to memcached? Thanks, GP Jason Roelofs wrote:> It''s not a guaranteed storage area. If that''s fine, then I see no > problem with it. > > Jason > > On Fri, Mar 21, 2008 at 6:45 PM, Grayson Piercee-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---