SILENT KILLERPanel

Current Path: > > opt > alt > python311 > lib > python3.11 > site-packages > pip > > _vendor > cachecontrol


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python311/lib/python3.11/site-packages/pip//_vendor/cachecontrol

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
caches Directory - -
__init__.py File 302 bytes November 13 2023 22:00:31.
_cmd.py File 1295 bytes November 13 2023 22:00:31.
adapter.py File 4882 bytes November 13 2023 22:00:31.
cache.py File 805 bytes November 13 2023 22:00:31.
compat.py File 695 bytes November 13 2023 22:00:31.
controller.py File 14149 bytes November 13 2023 22:00:31.
filewrapper.py File 2533 bytes November 13 2023 22:00:31.
heuristics.py File 4070 bytes November 13 2023 22:00:31.
serialize.py File 7091 bytes November 13 2023 22:00:31.
wrapper.py File 690 bytes November 13 2023 22:00:31.

Reading File: //opt/alt/python311/lib/python3.11/site-packages/pip//_vendor/cachecontrol/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 NotImplementedError()

    def set(self, key, value):
        raise NotImplementedError()

    def delete(self, key):
        raise NotImplementedError()

    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)

SILENT KILLER Tool