HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib/python3.10/site-packages/cachetools/__pycache__/keys.cpython-310.pyc
o

�h��@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}|dur||�|_}|S�N)�_HashedTuple__hashvalue)�self�hash�	hashvalue�r�B/usr/local/CyberCP/lib/python3.10/site-packages/cachetools/keys.py�__hash__sz_HashedTuple.__hash__cCst|||��Sr�r�r�other�addrrr�__add__�z_HashedTuple.__add__cCst|||��Srrrrrr�__radd__rz_HashedTuple.__radd__cCsiSrr)rrrr�__getstate__sz_HashedTuple.__getstate__)
�__name__�
__module__�__qualname__�__doc__r�tupler
rrrrrrrrsrcOs&|rt|tt|���t��St|�S)z8Return a cache key for the specified hashable arguments.)r�sum�sorted�items�_kwmark)�args�kwargsrrrr%srcO�t|i|��S)z/Return a cache key for use with cached methods.)r�rrr rrrr.�rcOsFt|i|��}|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>7s�ztypedkey.<locals>.<genexpr>css�|]	\}}t|�VqdSrr$)r&�_r'rrrr(8s�)rrrr)rr �keyrrrr3srcOr!)z5Return a typed cache key for use with cached methods.)rr"rrrr<r#rN)	r�__all__rrrrrrrrrrr�<module>s