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