Skip to content

Implement cache strategy with keys/TTLs/metrics #214

@JoshuaAFerguson

Description

@JoshuaAFerguson

Summary

Redis cache exists but usage is ad hoc. Need standard keys/TTLs, invalidation, metrics, and fail-open behavior per design/ADR.

Scope

  • Services using cache (templates, org settings, session summaries, user roles, feature flags)
  • Cache metrics and error handling

Acceptance Criteria

  • Implement keys/TTLs per cache strategy; cache disabled mode remains functional.
  • Invalidation on writes; no side-effect caching from non-canonical paths.
  • Metrics for hit/miss/error and latency; short timeouts and fail-open behavior.
  • Tests: hit/miss/error, invalidation, disabled cache mode.

References

  • ../streamspace-design-and-governance/03-system-design/cache-strategy.md
  • ../streamspace-design-and-governance/02-architecture/adr-002-cache-layer.md

Priority: P2 - Medium (v2.0-beta.2)
Milestone: v2.0-beta.2
Documentation: See ADR-002 for architecture

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1P2component:backendBackend API (Go)size:m4-8 hoursstaleNo recent activity - will be closed if no response

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions