shell写redis

echo "set testkey 5000" | redis-cli -h 192.168.2.12 -p 6379 -a 123456 -c
echo "get testkey" | redis-cli -h 192.168.2.12 -p 6379 -a 123456 -c

echo "set testkey 5000" | redis-cli -h 192.168.2.12 -p 6379 -a 123456 -c
echo "get testkey" | redis-cli -h 192.168.2.12 -p 6379 -a 123456 -c