Skip to main content

clearAllSubscriptionCache

SolvaPay SDK


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

Since

1.0.0