abstract redis connection