code: def _include_public_methods(self, connection):
          
          for attr in dir(connection):
              value = getattr(connection, attr)
              if attr.startswith('_') or not callable(value):
                  continue
              self.__dict__[attr] = self._wrap_public_method(attr)
docs: Include public methods from Redis connection to current instance.
  
          :param connection: Redis connection instance.