blob: 4508d5370857e0ecac1a3ee7d84e29c7a8572724 [file] [log] [blame]
:mod:`airflow.providers.redis.hooks.redis`
==========================================
.. py:module:: airflow.providers.redis.hooks.redis
.. autoapi-nested-parse::
RedisHook module
Module Contents
---------------
.. py:class:: RedisHook(redis_conn_id: str = default_conn_name)
Bases: :class:`airflow.hooks.base.BaseHook`
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}``.
.. attribute:: conn_name_attr
:annotation: = redis_conn_id
.. attribute:: default_conn_name
:annotation: = redis_default
.. attribute:: conn_type
:annotation: = redis
.. attribute:: hook_name
:annotation: = Redis
.. method:: get_conn(self)
Returns a Redis connection.