Skip to content

Instantly share code, notes, and snippets.

@next2you
Created February 21, 2011 21:54
Show Gist options
  • Save next2you/837768 to your computer and use it in GitHub Desktop.
Save next2you/837768 to your computer and use it in GitHub Desktop.
Test to see if membase flags are set correctly after restoring
client = Dalli::Client.new( 'localhost:11222')
if ARGV.include?("-ro")
result = client.get("hello")
puts "Result #{result.class}"
puts "Result #{result} "
exit 0
end
client.set("hello", { :this => :is, :a => :new, :world => :yes } )
result = client.get("hello")
puts "Result #{result.class}"
puts "Result #{result} "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment