Skip to content

Backend caching reference #567

Description

@codebestia

Write apps/backend/docs/concepts-caching.md for lib/conversationCache.ts and the Redis cache keys in lib/redis.ts: what is cached, the key format, the TTL, and every path that invalidates it.

Acceptance criteria:

  • Documents each cache key, its shape, TTL and payload
  • Lists every call site of invalidateConversationCaches and the event that triggers it
  • Explains the degraded behaviour when Redis is unavailable — the cache is an optimisation, not a correctness dependency
  • Documents the per-device scoping hazard: a conversation preview is device-specific, so a cache key that omitted the device would leak the wrong ciphertext to the wrong device

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackenddocumentationImprovements or additions to documentation

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions