This cool action shows how we can take a list of key/values stored in a Redis node and format into a Ruby hash for operating on.

string = redis.get('resource:38292')
=> "0,foo,1,bar,2,chicken"
>> Hash[string.split(,).each_slice(2).to_a]
=> {"0"=>"foo", "1"=>"bar", "2"=>"chicken"}


Leave a Reply

Screen Shot 2013-12-08 at 9.49.35 PM

I have helped a dozen companies build and optimize their engineering teams to deliver great products.

Let’s work together and I can align your business needs with your technology initiatives.