docs: def get_redis(**kwargs):
      """Returns a redis client instance.
  
      Parameters
      ----------
      redis_cls : class, optional
          Defaults to ``redis.StrictRedis``.
      url : str, optional
          If given, ``redis_cls.from_url`` is used to instantiate the class.
      **kwargs
          Extra parameters to be passed to the ``redis_cls`` class.
  
      Returns
      -------
      server
          Redis client instance.
  
      """
      redis_cls = kwargs.pop('redis_cls', defaults.REDIS_CLS)
      url = kwargs.pop('url', None)
      if url:
          return redis_cls.from_url(url, **kwargs)
      else:
          return redis_cls(**kwargs)