changed constructor to allow passing redis client directly