Skip to content

Commit 450f9a4

Browse files
committed
feat(config): make country service cache duration configurable
- Replace hardcoded cache duration with environment configuration value - Allow cache duration to be set via EnvironmentConfig.countryServiceCacheDuration
1 parent 507acf3 commit 450f9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/config/app_dependencies.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class AppDependencies {
243243
countryQueryService = CountryQueryService(
244244
countryRepository: countryRepository,
245245
log: Logger('CountryQueryService'),
246-
cacheDuration: const Duration(minutes: 15), // Default cache duration
246+
cacheDuration: EnvironmentConfig.countryServiceCacheDuration,
247247
);
248248

249249
_isInitialized = true;

0 commit comments

Comments
 (0)