File: //opt/alt/python37/lib64/python3.7/site-packages/psycopg2/__pycache__/_lru_cache.cpython-37.pyc
B
*��]� � @ sH d Z ddlmZ ddlmZ ddlmZ eddddd g�Zddd�Zd
S )z�
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).
� )�
namedtuple)�update_wrapper)�RLock� CacheInfo�hits�misses�maxsize�currsize�d c s � fdd�}|S )z�Least-recently-used cache decorator.
Arguments to the cached function must be hashable.
See: http://en.wikipedia.org/wiki/Cache_algorithms#Least_Recently_Used
c s� t � �ddg�d\� ��j�t�t� � g }||d d g|d d �<