search for: cache_a

Displaying 3 results from an estimated 3 matches for "cache_a".

Did you mean: cache_p
2006 May 25
1
New BackgrounDRb release
...stall and control the drb server is caching. You can now use BackgrounDRb as a full fledged in memory cache for any type of object that can be Marshal''ed. Here''s a peek: To cache an object you can do it two ways. @posts = Post.find(:all, :include => :comments) MiddleMan.cache_as(:post_cache, @posts) OR MiddleMan.cache_as :post_cache do Post.find(:all, :include => :comments) end And to retrieve the cache you can either just grab it and if there is nothing there it will return nil. Or you can supply a block that the contents of will get placed in the cache if the...
2006 Jul 01
9
BackgrounDRb New release.
...:args => "Bar", :ttl => 300) # 300 seconds == 5 minutes #caching #fill_cache, expire in 5 minutes @posts = Post.find(:all, :include => :comments) MiddleMan.cache_as(:post_cache, 300, @posts) #OR @posts = MiddleMan.cache_as :post_cache, 300 do Post.find(:all, :include => :comments) end #retrieve_cache @posts = MiddleMan.cache_get :post_cache do Post.find(:all, :include => :comments) end By default the timer_sleep is set to 60 seconds. This means...
2006 Mar 19
1
Rails and REST Example
Does anyone have an example of using REST and submitting data through a POST operation and then possibly loading that data with activerecord. Also, if you have client code written in another language (java,.net, C), would you have that code as well? Berlin Brown