Updated on 2026-08-14
This commit is contained in:
parent
3e1a45dbad
commit
6016933480
9 changed files with 21 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue