wherps, should have been using SMEMBER ... and pp
This commit is contained in:
parent
2c3ae088dd
commit
3ebd72f6ad
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user