clearCache static method

Future<void> clearCache()

Clears all cached responses from the active Hive box.

Use this on logout to ensure no stale user data remains on disk. For schema changes across app versions, prefer incrementing cacheVersion in configureNetworkService instead — it abandons the old box automatically.

Implementation

static Future<void> clearCache() => NetworkCacheService().clearCacheData();