add goroutine for accessing redis