Data Layer low complexity backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Short-TTL server-side cache scoped per tenant for computed security metric aggregates, preventing repeated expensive queries on each dashboard page load. Invalidated on significant tenant security events and exposes hit/miss telemetry for performance monitoring.

Feature: Security Dashboard

security-metrics-cache

Responsibilities

  • Cache aggregated security metric results per tenant with configurable TTL
  • Invalidate tenant cache entries on significant security events
  • Expose cache hit and miss statistics for observability

Interfaces

get(tenantId: string, metricKey: string): CachedMetric | null
set(tenantId: string, metricKey: string, value: unknown, ttlSeconds: number): void
invalidate(tenantId: string): void
getStats(): CacheStats

Relationships

Dependents (1)

Components that depend on this component