Replace curl with redis-cli commands