Created
February 21, 2011 21:54
-
-
Save next2you/837768 to your computer and use it in GitHub Desktop.
Test to see if membase flags are set correctly after restoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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