use options to config redis connection
Merge pull request #1 from adeven/new_redis_flags

use options to config redis connection