clearAllSubscriptionCache
SolvaPay SDK / next/src / clearAllSubscriptionCache
Function: clearAllSubscriptionCache()
clearAllSubscriptionCache():
void
Defined in: packages/next/src/cache.ts:284
Clear all subscription 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 { clearAllSubscriptionCache } from '@solvapay/next';
// In a test setup
beforeEach(() => {
clearAllSubscriptionCache();
});
See
- clearSubscriptionCache to clear cache for a specific user
- getSubscriptionCacheStats for cache monitoring
Since
1.0.0