class_docstr: Wrapper for connection to interact with Redis in-memory data structure store.
  
  You can set your db in the extra field of your connection as ``{"db": 3}``.
  Also you can set ssl parameters as:
  ``{"ssl": true, "ssl_cert_reqs": "require", "ssl_cert_file": "/path/to/cert.pem", etc}``.
class_docstr_tok: ["Wrapper","for","connection","to","interact","with","Redis","in-memory","data","structure","store",".","You","can","set","your","db","in","the","extra","field","of","your","connection","as","``","{","``","db","''",":","3","}","``",".","Also","you","can","set","ssl","parameters","as",":","``","{","``","ssl","''",":","true",",","``","ssl_cert_reqs","''",":","``","require","''",",","``","ssl_cert_file","''",":","``","\/path\/to\/cert.pem","''",",","etc","}","``","."]
docstr: Prepares hook to connect to a Redis database.
  
  :param conn_id:     the name of the connection that has the parameters
                      we need to connect to Redis.
docstr_tok: ["Prepares","hook","to","connect","to","a","Redis","database",".",":","param","conn_id",":","the","name","of","the","connection","that","has","the","parameters","we","need","to","connect","to","Redis","."]
code: def __init__(
      self, redis_conn_id: str = default_conn_name, **kwargs
  ) -> None:
      """
      Prepares hook to connect to a Redis database.
  
      :param conn_id:     the name of the connection that has the parameters
                          we need to connect to Redis.
      """
      super().__init__(**kwargs)
      self.redis_conn_id = redis_conn_id
      self.redis = None
      self.host = None
      self.port = None
      self.username = None
      self.password = None
      self.db = None
  
file_path: airflow/airflow/providers/redis/hooks/redis.py
imports: from __future__ import annotations
  import warnings
  from typing import Any
  from redis import Redis
  from airflow.exceptions import AirflowProviderDeprecationWarning
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 1 to create a new RedisHook object from inherited base classes: BaseHook with example: obj = RedisHook(redis_conn_id)