you should just have a redis client that's created outside the class definition, and then it's in the closure, as classes are just functions. also, no reason to keep killing the client at the end.