Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'eric/fix-return-for-set' into bugfix/fi…

…x-return-for-set
  • Loading branch information...
commit a2e34c5fdde2e2b2e172ae6ee19b5a50c70327af 2 parents 67e059b + cdf1626
@copiousfreetime authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/kjess/client.rb
View
4 lib/kjess/client.rb
@@ -77,7 +77,9 @@ def version
# Returns true if successful, false otherwise
def set( queue_name, item, expiration = 0 )
s = KJess::Request::Set.new( :queue_name => queue_name, :data => item, :expiration => expiration )
- send_recv( s )
+ resp = send_recv( s )
+
+ return KJess::Response::Stored === resp
end
# Public: Retrieve an item from the given queue
Please sign in to comment.
Something went wrong with that request. Please try again.