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/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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user