diff --git a/CHANGELOG.md b/CHANGELOG.md index 11bc9abb0c3..f5cc61bc1b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.12.10 + +* `Repos`: + * `Cache`: + * Hotfix in key values `get` + ## 0.12.9 * `Versions`: diff --git a/gradle.properties b/gradle.properties index 3a14162a6e4..c2347781c04 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,5 +14,5 @@ crypto_js_version=4.1.1 # Project data group=dev.inmo -version=0.12.9 -android_code_version=148 +version=0.12.10 +android_code_version=149 diff --git a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/KeyValuesCacheRepo.kt b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/KeyValuesCacheRepo.kt index 346454e0572..c251b852746 100644 --- a/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/KeyValuesCacheRepo.kt +++ b/repos/cache/src/commonMain/kotlin/dev/inmo/micro_utils/repos/cache/KeyValuesCacheRepo.kt @@ -13,10 +13,8 @@ open class ReadKeyValuesCacheRepo( protected open val kvCache: KVCache> ) : ReadKeyValuesRepo by parentRepo, CacheRepo { override suspend fun get(k: Key, pagination: Pagination, reversed: Boolean): PaginationResult { - val count = count(k) - return getAll(k, reversed).createPaginationResult( - pagination, - count + return getAll(k, reversed).paginate( + pagination ) } override suspend fun getAll(k: Key, reversed: Boolean): List {