Updated on 2026-08-14

This commit is contained in:
Tangem 2023-07-26 12:54:28 +03:00
parent 3e1a45dbad
commit 6016933480
9 changed files with 21 additions and 23 deletions

View file

@ -10,7 +10,7 @@ internal class DefaultCacheRegistry(
) : CacheRegistry {
override suspend fun isExpired(key: String): Boolean {
val cacheKey = cacheKeysStore.get(key) ?: return true
val cacheKey = cacheKeysStore.getOrNull(key) ?: return true
return cacheKey.updatedAt
.plus(cacheKey.expiresIn)