This commit is contained in:
2026-10-21 08:54:03 +02:00
parent 4f375e6766
commit 1ce33a69d1
11 changed files with 24 additions and 17 deletions

View File

@@ -55,10 +55,12 @@ class _ProfileCacheEntry {
final DateTime fetchedAt;
}
/// Agrège fiche user, skills (cursus, pas `/experiences`) et `projects_users` (scope `projects`).
class IntraProfileService {
IntraProfileService._();
static final IntraProfileService instance = IntraProfileService._();
/// Cache court + délai entre GET pour limiter les 429 sur l'API 42.
static const Duration _cacheTtl = Duration(minutes: 2);
static const Duration _betweenRequests = Duration(milliseconds: 450);