Skip to content

Instantly share code, notes, and snippets.

@michaeldwan
Created July 20, 2010 14:26
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 michaeldwan/483025 to your computer and use it in GitHub Desktop.
Save michaeldwan/483025 to your computer and use it in GitHub Desktop.
>> redis = Redis.new
=> #<Redis client v2.0.3 connected to redis://127.0.0.1:6379/0 (Redis v1.2.6)>
>> redis.smembers('missing')
=> nil
>> redis.sadd('missing', 'hello')
=> true
>> redis.smembers('missing')
=> ["hello"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment