put:
bean_queue.yput(msg)
take:
job = bean_queue.reserve
body = job.ybody
deleted = job.delete
Which might be good if you are planning on passing much non string data.
peace,
Dan
--
Dan Mayer
Co-founder, Devver
(http://devver.net)
follow us on twitter: http://twitter.com/devver
My Blog (http://mayerdan.com)
Thanks! This is a bug.
The client implicitly called to_s on the object, but incorrectly
called .size on the original object, not the resulting string.
Fixnum#size returns either 4 or 8, depending on your hardware, so
beanstalkd was waiting for more data.
Now fixed in git.
Though, as Dan suggested, you might want to consider using yput and
ybody if you're not just dealing with strings.
kr