Organization Labels Drift Cache
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Local Drift table on the Flutter client that stores the resolved label map received during session bootstrap. Enables the Label Resolution Service to answer synchronous label lookups without a network call, ensuring consistent organization terminology in fully offline scenarios.
organization-labels-drift-cache
Responsibilities
- Persist the full resolved label map for the current organization into local storage
- Provide synchronous and asynchronous label key lookups for offline use
- Clear and repopulate atomically on session bootstrap refresh or organization switch
Interfaces
insertOrReplaceAll(entries: List<OrganizationLabelEntry>): Future<void>
getValue(key: String): Future<String?>
getAll(): Future<Map<String, String>>
clearAll(): Future<void>
watchValue(key: String): Stream<String?>