wherps, should have been using SMEMBER ... and pp

This commit is contained in:
Dan Buch 2012-02-28 23:47:47 -05:00
parent 2c3ae088dd
commit 3ebd72f6ad

View File

@ -1,6 +1,7 @@
require 'redis/connection/hiredis'
require 'redis'
require 'pp'
require 'yaml'
@ -27,8 +28,8 @@ def main
puts redis.sadd('hamsters', 'walter')
puts redis.get('foo')
puts YAML.load_documents(redis.get('derp'))[0]
puts redis.sinter('hamsters')
pp YAML.load_documents(redis.get('derp'))[0]
puts redis.smembers('hamsters')
end