clearAllPurchaseCache
SolvaPay SDK / next/src / clearAllPurchaseCache
Function: clearAllPurchaseCache()
clearAllPurchaseCache():
void
Defined in: packages/next/src/cache.ts:285
Clear all purchase cache entries.
Useful for testing, debugging, or when you need to force fresh lookups for all users. This clears both the in-flight request cache and the result cache.
Returns
void
Example
import { clearAllPurchaseCache } from '@solvapay/next';
// In a test setup
beforeEach(() => {
clearAllPurchaseCache();
});
See
- clearPurchaseCache to clear cache for a specific user
- getPurchaseCacheStats for cache monitoring
Since
1.0.0