HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/cachetools/__pycache__/keys.cpython-37.pyc
B

��f��@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/alt/python37/lib/python3.7/site-packages/cachetools/keys.py�__hash__sz_HashedTuple.__hash__cCst|||��S)N)r)r�other�addr
r
r�__add__sz_HashedTuple.__add__cCst|||��S)N)r)rr
rr
r
r�__radd__sz_HashedTuple.__radd__cCsiS)Nr
)rr
r
r�__getstate__sz_HashedTuple.__getstate__)
�__name__�
__module__�__qualname__�__doc__r�tuplerrrrr
r
r
rrsrcOs*|rt|tt|���t��St|�SdS)z8Return a cache key for the specified hashable arguments.N)r�sum�sorted�items�_kwmark)�args�kwargsr
r
rr%srcOs
t||�S)z/Return a cache key for use with cached methods.)r)rrrr
r
rr.srcOsBt||�}|tdd�|D��7}|tdd�t|���D��7}|S)z>Return a typed cache key for the specified hashable arguments.css|]}t|�VqdS)N)�type)�.0�vr
r
r�	<genexpr>7sztypedkey.<locals>.<genexpr>css|]\}}t|�VqdS)N)r)r�_rr
r
rr 8s)rrrr)rr�keyr
r
rr3s
rcOs
t||�S)z5Return a typed cache key for use with cached methods.)r)rrrr
r
rr<srN)	r�__all__rrrrrrrr
r
r
r�<module>s