Skip to content

sdk: add getRound caching with explicit invalidation #158

Description

@karagozemin

Summary

Provide an optional short-lived cache for getRound / getConfig reads in SubRosaClient, with explicit invalidation on write operations (commit/reveal/settle).

Motivation

Dashboards and keeper watch loops re-read the same round repeatedly; uncached reads add avoidable RPC load and latency.

Acceptance criteria

  • Opt-in cache with configurable TTL (default off).
  • Writes invalidate the affected round entry.
  • Tests proving stale reads are avoided after a write.
  • Documented tradeoffs in the SDK README.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Stellar WaveIssue proposed for the Drips Stellar Wave programarea: sdkTypeScript SDKcomplexity: mediumExpected medium implementation complexityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions