bloomBUILD•SHIP•BLOOM
.md
Cache Memory

Cache & Garbage Collection

Automatic TTL eviction and memory limits prevent memory leaks in long-running mobile apps.

Cache Lifecycle & Limits

lib/app/boot.dart
dart
// Global Cache Configuration in Bootstrapper
final queryClient = BloomQueryClient(
  defaultStaleTime: const Duration(minutes: 5),
  defaultGcTime: const Duration(hours: 1),
  maxMemoryCacheSize: 50 * 1024 * 1024, // 50MB bound
);