Infrastructure low complexity backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

In-memory or edge-cache layer that stores results of expensive aggregation queries with short TTLs. Reduces repeated database load for coordinators viewing the same report within a session, while ensuring stale data windows remain acceptable for operational use.

Feature: Team Reports

report-query-cache

Responsibilities

  • Cache pre-aggregated report results keyed by filter parameter hash
  • Invalidate cache entries when new activities are submitted
  • Apply TTL policies appropriate for report freshness requirements

Interfaces

getCachedReport(cacheKey)
setCachedReport(cacheKey, data, ttl)
invalidateOrgCache(orgId)
buildCacheKey(filterParams)
clearExpiredEntries()