[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
python3.6
/
site-packages
/
pip
/
_vendor
/
cachecontrol
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📁 caches
SET
[ DEL ]
📄 __init__.py
302 B
SET
[ EDIT ]
|
[ DEL ]
📄 _cmd.py
1,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 adapter.py
4,608 B
SET
[ EDIT ]
|
[ DEL ]
📄 cache.py
790 B
SET
[ EDIT ]
|
[ DEL ]
📄 compat.py
380 B
SET
[ EDIT ]
|
[ DEL ]
📄 controller.py
13,024 B
SET
[ EDIT ]
|
[ DEL ]
📄 filewrapper.py
2,531 B
SET
[ EDIT ]
|
[ DEL ]
📄 heuristics.py
4,141 B
SET
[ EDIT ]
|
[ DEL ]
📄 serialize.py
6,536 B
SET
[ EDIT ]
|
[ DEL ]
📄 wrapper.py
498 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: cache.py
""" The cache object API for implementing caches. The default is a thread safe in-memory dictionary. """ from threading import Lock class BaseCache(object): def get(self, key): raise NotImplemented() def set(self, key, value): raise NotImplemented() def delete(self, key): raise NotImplemented() def close(self): pass class DictCache(BaseCache): def __init__(self, init_dict=None): self.lock = Lock() self.data = init_dict or {} def get(self, key): return self.data.get(key, None) def set(self, key, value): with self.lock: self.data.update({key: value}) def delete(self, key): with self.lock: if key in self.data: self.data.pop(key)