Created
March 12, 2010 18:41
-
-
Save justinvt/330607 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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