musikr: remove default method from cache
This commit is contained in:
+1
-6
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user