Toolbox Offline Cache Infrastructure
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Local SQLite caching layer for talking cards and toolbox content, enabling full offline access during home visits in low-connectivity environments. Manages cache versioning, expiry, and data serialization for the card dataset.
toolbox-cache-infrastructure
Responsibilities
- Persist card JSON payloads in local SQLite database
- Manage cache expiry and versioning per organization
- Serialize and deserialize card model objects to/from SQLite
- Expose cache read/write primitives to the repository layer
Interfaces
insertCards(List cards, organizationId)
queryCards(organizationId)
queryCardById(cardId)
deleteCardsByOrganization(organizationId)
getCacheVersion(organizationId)
setCacheVersion(organizationId, version)
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (1)
Data entities managed by this component