beta: Pass global into closure for redis connection

Bug: T845
Change-Id: I1843dfd78bfc32cba187b177fa91117538f05e83