PHP 8.2.30
Preview: __init__.py Size: 1.23 KB
/proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/diskcache/__init__.py

"""
DiskCache API Reference
=======================

The :doc:`tutorial` provides a helpful walkthrough of most methods.
"""

from .core import (
    DEFAULT_SETTINGS,
    ENOVAL,
    EVICTION_POLICY,
    UNKNOWN,
    Cache,
    Disk,
    EmptyDirWarning,
    JSONDisk,
    Timeout,
    UnknownFileWarning,
)
from .fanout import FanoutCache
from .persistent import Deque, Index
from .recipes import (
    Averager,
    BoundedSemaphore,
    Lock,
    RLock,
    barrier,
    memoize_stampede,
    throttle,
)

__all__ = [
    'Averager',
    'BoundedSemaphore',
    'Cache',
    'DEFAULT_SETTINGS',
    'Deque',
    'Disk',
    'ENOVAL',
    'EVICTION_POLICY',
    'EmptyDirWarning',
    'FanoutCache',
    'Index',
    'JSONDisk',
    'Lock',
    'RLock',
    'Timeout',
    'UNKNOWN',
    'UnknownFileWarning',
    'barrier',
    'memoize_stampede',
    'throttle',
]

try:
    from .djangocache import DjangoCache  # noqa

    __all__.append('DjangoCache')
except Exception:  # pylint: disable=broad-except  # pragma: no cover
    # Django not installed or not setup so ignore.
    pass

__title__ = 'diskcache'
__version__ = '5.6.3'
__build__ = 0x050603
__author__ = 'Grant Jenks'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2016-2023 Grant Jenks'

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-03-03 08:59:01
Edit Download
44 B lrw-r--r-- 2026-02-13 12:40:40
Edit Download
79.95 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
15.73 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
22.19 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
33.87 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
14.57 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download
1.23 KB lrw-r--r-- 2026-02-13 12:40:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).