add full cache repos

This commit is contained in:
2022-06-29 23:53:49 +06:00
parent 540d5cce7c
commit 0d0c16e16d
10 changed files with 378 additions and 55 deletions

View File

@@ -48,6 +48,10 @@ interface KeyValueRepo<Key, Value> : ReadKeyValueRepo<Key, Value>, WriteKeyValue
}
}
}
suspend fun clear() {
doAllWithCurrentPaging { keys(it).also { unset(it.results) } }
}
}
typealias StandardKeyValueRepo<Key,Value> = KeyValueRepo<Key, Value>