redis-cli -h <redis-server-ip> -p <redis-port> -a <password>
http://doc.redisfans.com/open in new window
# SET key value EX 60 NX SET demo "demo" EX 60 NX