Terminology Cache
Component Detail
Infrastructure
low complexity
mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Client-side cache on the Flutter mobile app that stores the resolved terminology map fetched at login. Provides synchronous label resolution throughout the app without repeated network calls, and serves cached terms during offline use. Invalidated and refreshed on next successful login or explicit refresh.
terminology-cache
Responsibilities
- Persist the resolved terminology map to local secure storage after login fetch
- Provide synchronous term lookup for all UI label resolution in the mobile app
- Serve cached terms when the device is offline
- Invalidate and refresh the cache on login or when the admin updates terminology
Interfaces
loadFromRemote(orgId: string): Promise<void>
resolve(termKey: string): string
invalidate(): void
isCached(): boolean
getAll(): Record<string, string>