Skip to content

cache/mod.rs cache invalidation tags are not bounded — unbounded memory growth risk #686

@hman38705

Description

@hman38705

Labels: backend, reliability
Priority: Medium

Description

services/api/src/cache/mod.rs implements tag-based cache invalidation. If tags accumulate without TTL or size limits, the Redis memory usage can grow unboundedly, especially for high-cardinality tag sets.

Acceptance Criteria

  • Tag sets stored with a TTL matching the longest-lived cached entry
  • Tag set size capped; oldest entries evicted when cap is reached
  • Redis memory usage for cache tags monitored via metrics

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions