All,
I''m trying to add/''set'' values in the sparrow queue
server (http://
code.google.com/p/sparrow/) which is very similar to Starling. I can
add values to the queue easily from an irb session or independent
script, but not from a model method. What do I need to do to make
this work?
####################################
What I used in the script and irb session:
require ''rubygems''
require ''memcache''
m = MemCache.new(''127.0.0.1:11212'')
m[''queue_name''] = ''1'' # Publish to queue
####################################
Example Model Test:
class Exmaple < ActiveRecord::Base
def experiment
require ''memcache''
m = MemCache.new(''127.0.0.1:11212'')
m[''queue_name''] = ''1''
end
end
Thanks!
--Nick
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---