Skip to content

Instantly share code, notes, and snippets.

@justinvt
Created March 12, 2010 18:41
Show Gist options
  • Save justinvt/330607 to your computer and use it in GitHub Desktop.
Save justinvt/330607 to your computer and use it in GitHub Desktop.
git clone git://github.com/ezmobius/redis-rb.git
cd redis-rb/
rake redis:install
rake dtach:install
rake redis:start &
rake install
cat <<EOF >>test.rb
require 'rubygems'
require 'redis'
r = Redis.new
r.delete('foo')
p'set foo to "bar"'
r['foo'] = 'bar'
p 'value of foo'
p r['foo']
EOF
ruby test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment