Files
unionflow-mobile-apps/lib/features/settings/domain/usecases/get_cache_stats.dart
dahoud d094d6db9c Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts).

Signed-off-by: lions dev Team
2026-03-15 16:30:08 +00:00

24 lines
689 B
Dart

/// Use Case: Récupérer les statistiques du cache
library get_cache_stats;
import 'package:injectable/injectable.dart';
import '../repositories/system_config_repository.dart';
import '../../data/models/cache_stats_model.dart';
/// Récupère les statistiques du cache applicatif
///
/// Use case pour consulter l'état du cache (taille, hits/miss, etc.)
/// Endpoint: GET /api/system/cache/stats
@injectable
class GetCacheStats {
final ISystemConfigRepository _repository;
GetCacheStats(this._repository);
/// Exécute le use case
/// Retourne les statistiques du cache (CacheStatsModel)
Future<CacheStatsModel> call() async {
return _repository.getCacheStats();
}
}