musikr: remove default method from cache

This commit is contained in:
Alexander Capehart
2026-08-29 15:26:22 -06:00
parent a63aa074c2
commit d19cd9dc34
+1 -6
View File
@@ -68,14 +68,9 @@ interface MutableCache : Cache {
* Prefer this over multiple [write] calls when writing many entries at once, as implementations * Prefer this over multiple [write] calls when writing many entries at once, as implementations
* can use bulk-insert strategies to reduce transaction overhead. * can use bulk-insert strategies to reduce transaction overhead.
* *
* The default implementation falls back to calling [write] for each item individually. Override
* for a more efficient implementation.
*
* @param cachedFiles the [CachedFile]s to write to the cache * @param cachedFiles the [CachedFile]s to write to the cache
*/ */
suspend fun writeAll(cachedFiles: List<CachedFile>) { suspend fun writeAll(cachedFiles: List<CachedFile>)
cachedFiles.forEach { write(it) }
}
/** /**
* Cleanup the cache by removing all [CachedFile]s that are not in the provided [excluding] * Cleanup the cache by removing all [CachedFile]s that are not in the provided [excluding]