Add deferred plugin storage strategy

This commit is contained in:
MM20
2024-04-09 18:00:32 +02:00
parent ef1d6c70e8
commit 2efc159741
3 changed files with 63 additions and 7 deletions
@@ -21,5 +21,13 @@ enum class StorageStrategy {
* Use this strategy if your plugin needs to perform network requests to retrieve search
* results and if you don't want to implement a cache for search results.
*/
StoreCopy;
StoreCopy,
/**
* The launcher stores all relevant information in its own internal database, like [StoreCopy].
* A fresh copy is fetched from the plugin provider when the user opens the search result's
* detail view. This allows the plugin provider to update the search result at a later point in
* time, without the time constraints of [StoreReference].
*/
Deferred,
}