code clean, change spawn type for redis thread