◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
base = None |
|
) |
| |
Initialise an instance.
:param base: The base directory where the cache should be located.
Reimplemented from Cache.
◆ get()
def get |
( |
|
self, |
|
|
|
resource |
|
) |
| |
Get a resource into the cache,
:param resource: A :class:`Resource` instance.
:return: The pathname of the resource in the cache.
◆ is_stale()
def is_stale |
( |
|
self, |
|
|
|
resource, |
|
|
|
path |
|
) |
| |
Is the cache stale for the given resource?
:param resource: The :class:`Resource` being cached.
:param path: The path of the resource in the cache.
:return: True if the cache is stale.
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/pip/_vendor/distlib/resources.py