%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pyc

�
�ac@sadZddlmZddlmZddlmZeddddd	g�Zd
d�ZdS(
s�
LRU cache implementation for Python 2.7

Ported from http://code.activestate.com/recipes/578078/ and simplified for our
use (only support maxsize > 0 and positional arguments).
i����(t
namedtuple(tupdate_wrapper(tRLockt	CacheInfothitstmissestmaxsizetcurrsizeidcs�fd�}|S(s�Least-recently-used cache decorator.

    Arguments to the cached function must be hashable.

    See:  http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used

    cs#t��ddg�d	\���j�t�t��	g}||ddg|(|g�
d
\�����
r�
dks�td�
������������	�
�
��fd�}����	�
�fd�}��	�
�fd�}�|_||_||_t	|��S(Niiiismaxsize %s not supportedc
	s�|}�	���|�}|dk	r��\}|\}}}}||�<||�<|�}||�<|�<||�<||�<��cd7<|SWdQX�
|�}�	���\}|�kr�n�����
kr7|}||�<||�<|�}�d<|�}	d|�<|�<�|	=|�|<n6|�}||||g}||�<|�<�|<��cd7<WdQX|S(Nii(tNone(
targstkeytlinktroott	link_prevt	link_nexttresulttlasttoldroottoldkey(tHITStKEYtMISSEStNEXTtPREVtRESULTt_lentcachet	cache_gettlockRt
nonlocal_roottstatst
user_function(sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pytwrapper&sB	





	




c
s2��&t�����t���SWdQXdS(sReport cache statisticsN(t
_CacheInfotlen((RRRRRR(sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pyt
cache_infoVscsE��9�j��d}||ddg|(ddg�(WdQXdS(s$Clear the cache and cache statisticsiN(tclearR(R(RRRR(sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pytcache_clear[s


(ii(iiii(
tdicttgetR"RRtAssertionErrort__wrapped__R#R%R(RRR R#R%(R(
RRRRRRRRRRRRRsJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pytdecorating_functions$				"60			((RR*((RsJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pyt	lru_cachesQN(	t__doc__tcollectionsRt	functoolsRt	threadingRR!R+(((sJ/opt/plesk/python/2.7/lib64/python2.7/site-packages/psycopg2/_lru_cache.pyt<module>s


Zerion Mini Shell 1.0