« Back to Index

Redis testing on EC2 instance with CentOS

View original Gist on GitHub

redis-testing-ec2.bash

yum install epel-release -y
yum install redis -y # gives you the cli tools

# now you can use:
# http://redis.io/commands

redis-cli -h <endpoint> -p 6379
# where <endpoint> is something like int-mozart-comp.f7qvra.0001.euw1.cache.amazonaws.com
# which you can get from the AWS console under "cache clusters"

set foo "bar"
get foo
Keys *    # returns all redis keys
monitor   # tails all activity
ttl <key> # returns current ttl value remaining