Which version of DataMapper are you using? I have a bug currently open with DataMapper that objects fail to be marshaled preventing them from being cached with memcached: http://datamapper.lighthouseapp.com/projects/20609/tickets/691-unable-to-marshaldump-dm-objects-097
The bug was with 0.9.7, and it still had the issue in 0.9.8. I haven't tried the latest edge code though. In general though, it is a DataMapper bug and not a Merb bug. Ken On Tue, Dec 23, 2008 at 1:17 AM, Stan <[email protected]> wrote: > > So Merb::Cache[:memcached] works fine as long as I don't try to save > my DataMapper objects. > It looks like this: > irb(main):007:0> l = Line.first > => #<Line id=2 no="4" begin=#<Date: 4909513/2,0,2299161> active=false> > irb(main):008:0> Merb::Cache[:memcached].write 'line', l > => nil > > Why is that? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
