
    (ph                     j    S SK Jr   S SKrSrS	S jr\S 5       r " S S\5      rg! \ a    Sr N#f = f)
    )contextmanagerNTFc                 4    SSK Jn  UR                  " X40 UD6$ )z
Returns an active Redis client generated from the given database URL.

Will attempt to extract the database id from the path url fragment, if
none is provided.
r   )Redis)redis.clientr   from_url)urldbkwargsr   s       >/var/www/html/venv/lib/python3.13/site-packages/redis/utils.pyr   r      s     #>>#,V,,    c              #   T   #    U R                  5       nUv   UR                  5         g 7fN)pipelineexecute)	redis_objps     r   r   r      s!     A
GIIKs   &(c                       \ rS rSrSrSrg)dummy   z@
Instances of this class can be used as an attribute container.
 N)__name__
__module____qualname____firstlineno____doc____static_attributes__r   r   r   r   r      s     	r   r   r   )	
contextlibr   hiredisHIREDIS_AVAILABLEImportErrorr   r   objectr   r   r   r   <module>r"      sR    %
-  	F 	-  s   ' 22