Created
March 14, 2013 19:56
-
-
Save matschaffer/5164639 to your computer and use it in GitHub Desktop.
This file contains 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
╰─ 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