U .e%@s4dZddlmZGdddeZGdddeZdS)zb The cache object API for implementing caches. The default is a thread safe in-memory dictionary. )Lockc@s,eZdZddZddZddZddZd S) BaseCachecCs tdSNNotImplementedErrorselfkeyr B/usr/lib/python3.8/site-packages/pip/_vendor/cachecontrol/cache.pyget sz BaseCache.getcCs tdSrrrr valuer r r set sz BaseCache.setcCs tdSrrrr r r deleteszBaseCache.deletecCsdSrr )rr r r closeszBaseCache.closeN)__name__ __module__ __qualname__r rrrr r r r rsrc@s.eZdZd ddZddZddZdd ZdS) DictCacheNcCst|_|pi|_dSr)rlockdata)rZ init_dictr r r __init__szDictCache.__init__cCs|j|dSr)rr rr r r r sz DictCache.getc Cs&|j|j||iW5QRXdSr)rrupdater r r r r sz DictCache.setc Cs,|j||jkr|j|W5QRXdSr)rrpoprr r r r$s zDictCache.delete)N)rrrrr rrr r r r rs rN)__doc__Z threadingrobjectrrr r r r s