o
    ǯh                     @   s    d dl mZ dd Zdd ZdS )    )
connectionc                 C   s   dt j||| f S )z
    Tenant aware function to generate a cache key.

    Constructs the key used by all other methods. Prepends the tenant
    `schema_name` and `key_prefix'.
    z%s:%s:%s:%s)r   schema_name)key
key_prefixversion r   Q/var/www/Befach/backend/venv/lib/python3.10/site-packages/django_tenants/cache.pymake_key   s   r	   c                 C   s   |  ddd S )zt
    Tenant aware function to reverse a cache key.

    Required for django-redis REVERSE_KEY_FUNCTION setting.
    :   )split)r   r   r   r   reverse_key   s   r   N)	django.dbr   r	   r   r   r   r   r   <module>   s    
