Skip to content

Commit 8509e19

Browse files
committed
update doc
1 parent 504b543 commit 8509e19

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

purchases/src/main/kotlin/com/revenuecat/purchases/common/workflows/WorkflowsCache.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ internal class WorkflowsCache(
165165
}
166166

167167
/**
168-
* Drops persisted envelopes whose workflowId is no longer in the latest list. This is the
169-
* keyed-map equivalent of how [com.revenuecat.purchases.common.offerings.OfferingsCache] stays
170-
* bounded by wholesale-replacing its single response blob: the persisted set always equals what
171-
* the latest backend response says exists, so workflows the backend stopped sending don't
172-
* linger on disk.
168+
* Drops persisted envelopes whose workflowId is no longer in the latest list. Because only
169+
* successfully-prefetched workflows are ever written here (see [cacheWorkflowDetailEnvelope]),
170+
* this prune removes stale prefetch envelopes for workflows the backend has stopped sending.
171+
* It is the keyed-map equivalent of how [com.revenuecat.purchases.common.offerings.OfferingsCache]
172+
* stays bounded by wholesale-replacing its single response blob.
173173
*/
174174
@Synchronized
175175
private fun pruneWorkflowDetailEnvelopesToList(workflowIds: Set<String>) {

0 commit comments

Comments
 (0)