Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created March 14, 2013 19:56
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 matschaffer/5164639 to your computer and use it in GitHub Desktop.
Save matschaffer/5164639 to your computer and use it in GitHub Desktop.
╰─ redis-cli -h ec2-54-234-243-184.compute-1.amazonaws.com -p 22121
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> get foo
"bar"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1]}" 1 foo
1) "foo"
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key1 key1
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> set key2 key2
OK
redis ec2-54-234-243-184.compute-1.amazonaws.com:22121> eval "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second
1) "key1"
2) "key2"
3) "first"
4) "second"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment