Feature Flag Cache
Component Detail
Infrastructure
low complexity
mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Client-side cache in the Flutter mobile app that stores the flag map fetched at login. All conditional UI rendering checks this local cache so no additional network calls are needed per screen. Cache is invalidated and refreshed on re-authentication.
feature-flag-cache
Responsibilities
- Store the flag map locally after login API response
- Provide synchronous flag lookup for UI rendering decisions
- Invalidate cache on logout or re-authentication
- Expose a typed accessor so UI components check flags without raw string keys
Interfaces
setFlags(flags: Record<string, boolean>): void
isEnabled(flagKey: string): bool
clear(): void
getAll(): Record<string, bool>