Created
June 18, 2012 12:50
-
-
Save michaelvobrien/2948233 to your computer and use it in GitHub Desktop.
Simple stack for the command-line using redis.
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
STACK_NAME='stack' | |
alias stack="redis-cli lrange ${STACK_NAME} 0 -1" | |
alias push="redis-cli lpush ${STACK_NAME}" | |
alias pop="redis-cli lpop ${STACK_NAME}" | |
alias empty="redis-cli del ${STACK_NAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment