Utility for caching master images.
Bases: object
Class handling access to cache for master images.
Clean up directory with images, keeping cache of the latest images.
Files with link count >1 are never deleted. Protected by global lock, so that no one messes with master images after we get listing and before we actually delete files.
| Parameters: | amount – if present, amount of space to reclaim in bytes, cleaning will stop, if this goal was reached, even if it is possible to clean up more files |
|---|
Fetch image by given href to the destination path.
Does nothing if destination path exists and corresponds to a file that exists. Only creates a link if master image for this UUID is already in cache. Otherwise downloads an image and also stores it in cache.
| Parameters: |
|
|---|