Skip to content

Instantly share code, notes, and snippets.

@cvonkleist
Created March 16, 2011 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvonkleist/872649 to your computer and use it in GitHub Desktop.
Save cvonkleist/872649 to your computer and use it in GitHub Desktop.
can redis use binary keys?
>> @r=Redis.new
#<Redis client v2.1.1 connected to redis://localhost:6379/0 (Redis v2.1.12)>
>> @r.set Digest::SHA1.digest('foo'), 'bar'
=> "OK"
>> @r.get Digest::SHA1.digest('foo')
=> "bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment