Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/cachetools/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/cachetools/__pycache__/keys.cpython-38.pyc
U

O��g��@sBdZdZGdd�de�ZefZdd�Zdd�Zdd	�Zd
d�ZdS)
z'Key functions for memoizing decorators.)�hashkey�	methodkey�typedkey�typedmethodkeyc@sFeZdZdZdZejfdd�Zejfdd�Zejfdd�Zd	d
�Z	dS)�_HashedTuplez�A tuple that ensures that hash() will be called no more than once
    per element, since cache decorators will hash the key multiple
    times on a cache miss.  See also _HashedSeq in the standard
    library functools implementation.

    NcCs |j}|dkr||�|_}|S�N)�_HashedTuple__hashvalue)�self�hash�	hashvalue�r�</opt/cppython/lib/python3.8/site-packages/cachetools/keys.py�__hash__sz_HashedTuple.__hash__cCst|||��Sr�r�r�other�addrrr�__add__sz_HashedTuple.__add__cCst|||��Srrrrrr�__radd__sz_HashedTuple.__radd__cCsiSrr)rrrr�__getstate__sz_HashedTuple.__getstate__)
�__name__�
__module__�__qualname__�__doc__r�tupler
rrrrrrrrsrcOs*|rt|tt|���t��St|�SdS)z8Return a cache key for the specified hashable arguments.N)r�sum�sorted�items�_kwmark)�args�kwargsrrrr%srcOs
t||�S)z/Return a cache key for use with cached methods.)r�rrrrrrr.srcOsBt||�}|tdd�|D��7}|tdd�t|���D��7}|S)z>Return a typed cache key for the specified hashable arguments.css|]}t|�VqdSr��type)�.0�vrrr�	<genexpr>7sztypedkey.<locals>.<genexpr>css|]\}}t|�VqdSrr!)r#�_r$rrrr%8s)rrrr)rr�keyrrrr3s
rcOs
t||�S)z5Return a typed cache key for use with cached methods.)rr rrrr<srN)	r�__all__rrrrrrrrrrr�<module>s		

F1le Man4ger