This commit is contained in:
InsanusMokrassar 2022-09-07 23:47:13 +06:00
parent fb122f3e70
commit 1a3ce6e623
2 changed files with 6 additions and 4 deletions

View File

@ -2,6 +2,10 @@
## 0.12.10 ## 0.12.10
* `Repos`:
* `Cache`:
* Hotfix in key values `get`
## 0.12.9 ## 0.12.9
* `Versions`: * `Versions`:

View File

@ -13,10 +13,8 @@ open class ReadKeyValuesCacheRepo<Key,Value>(
protected open val kvCache: KVCache<Key, List<Value>> protected open val kvCache: KVCache<Key, List<Value>>
) : ReadKeyValuesRepo<Key,Value> by parentRepo, CacheRepo { ) : ReadKeyValuesRepo<Key,Value> by parentRepo, CacheRepo {
override suspend fun get(k: Key, pagination: Pagination, reversed: Boolean): PaginationResult<Value> { override suspend fun get(k: Key, pagination: Pagination, reversed: Boolean): PaginationResult<Value> {
val count = count(k) return getAll(k, reversed).paginate(
return getAll(k, reversed).createPaginationResult( pagination
pagination,
count
) )
} }
override suspend fun getAll(k: Key, reversed: Boolean): List<Value> { override suspend fun getAll(k: Key, reversed: Boolean): List<Value> {