blossom_cache_io library
FileBlossomCache, a disk-backed BlossomCache for native and server.
Uses dart:io, so it is not available on web.
Classes
- BlobDescriptor
- Metadata describing a blob stored in a BlossomCache.
- BlossomCache
- A local, network-free Blossom blob store.
- BoundedBlossomCache
-
A BlossomCache that caps the total stored size and evicts blobs in LRU
order (
lastAccessedAtascending) when aputwould exceed maxSize. - FileBlossomCache
- A BlossomCache that stores each blob as its own file and keeps only the metadata in a small sembast database. Memory use does not grow with the size of the blobs, so it fits caches of tens of gigabytes. Native and server only.
- IdbBlossomCache
-
A BlossomCache backed by
idb_shim, so the same code runs on web (real IndexedDB), native/server (sembast), or pure in-memory (tests).
Exceptions / Errors
- BlossomCacheOverflowException
-
Thrown when a BoundedBlossomCache cannot accommodate a
put.