Skip to main content

Module cache

Module cache 

Source
Expand description

Local caching module for offline data access.

This module provides the CacheManager for storing and retrieving troop data locally. Data is cached in JSON format and considered stale after 60 minutes.

Cached data types include:

  • Youth, Adults, Parents
  • Events
  • Advancement dashboard and progress data
  • Patrols

Re-exports§

pub use fetch::fetch_with_cache;
pub use manager::CacheAges;
pub use manager::CacheManager;
pub use offline::cache_all_for_offline;
pub use offline::CacheProgress;
pub use refresh::refresh_base_data;
pub use refresh::RefreshResult as BaseRefreshResult;

Modules§

fetch
Generic fetch-with-cache pattern.
manager
offline
Shared offline caching logic.
refresh
Shared refresh orchestration for base data.