Array of storage backends to use, in order of preference ; if first is available, use it, otherwise try the next one.
Delete multiple files in cache.
A predicate like array.filter(item => boolean)
Get metadata of a cached file
Get the size of a file in stored cache
NOTE: in case the download is stopped mid-way (i.e. user close browser tab), the file maybe corrupted, size maybe different from metadata.originalSize
The file name returned by getNameFromURL() or list()
number of bytes, or -1 if file does not exist
List all files currently in cache
The file name returned by getNameFromURL() or list()
Write the metadata of the file to disk.
Manages cached model files, backed by a pluggable StorageBackend.
Defaults to OPFS (Origin Private File System).