Skip to main content

clearAllPurchaseCache

SolvaPay SDK v1.0.0


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

Since

1.0.0