Cards Cache Service
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Manages local caching of the talking card dataset to improve reliability in low-connectivity environments. Fetches the card set from the REST API and persists it locally, serving cached content when the network is unavailable.
cards-cache-service
Responsibilities
- Fetch talking card dataset from REST API and store locally
- Serve cached card data when offline or in low-connectivity conditions
- Invalidate and refresh cache when updated card data is available
Interfaces
getCards(): Future<List<TalkingCard>>
refreshCache(): Future<void>
isCacheValid(): bool