@@ -49,13 +49,13 @@ implements QueryClientService {
|
|||||||
Effect.andThen(
|
Effect.andThen(
|
||||||
DateTime.now,
|
DateTime.now,
|
||||||
now => SubscriptionRef.update(this.cache, HashMap.filter(entry =>
|
now => SubscriptionRef.update(this.cache, HashMap.filter(entry =>
|
||||||
Duration.greaterThanOrEqualTo(
|
Duration.lessThan(
|
||||||
DateTime.distanceDuration(entry.lastAccessedAt, now),
|
DateTime.distanceDuration(entry.lastAccessedAt, now),
|
||||||
Duration.sum(entry.staleTime, this.cacheGcTime),
|
Duration.sum(entry.staleTime, this.cacheGcTime),
|
||||||
)
|
)
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
Schedule.spaced("1 second"),
|
Schedule.spaced("30 second"),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user