Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts). Signed-off-by: lions dev Team
This commit is contained in:
23
lib/features/settings/domain/usecases/get_cache_stats.dart
Normal file
23
lib/features/settings/domain/usecases/get_cache_stats.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
/// 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user