AttachmentCache¶
- class flask_attachments.AttachmentCache(settings: AttachmentSettings | None = None)[source]¶
Bases:
Mapping[str,Path]On-disk cache for attachment files
On-disk static files allows for more efficient serving.
Methods Summary
clear()Empty the cache directory entirely
get(k[,d])items()keys()paths()All the paths in this cache
prune()Prune the cache directory
size()Size of the cache, in bytes
values()Methods Documentation
- get(k[, d]) D[k] if k in D, else d. d defaults to None.¶
- items() a set-like object providing a view on D's items¶
- keys() a set-like object providing a view on D's keys¶
- values() an object providing a view on D's values¶