Skip to content

Comments

Feature/distributed systems caching#49

Merged
mheidari988 merged 2 commits intomainfrom
feature/distributed-systems-caching
Feb 4, 2026
Merged

Feature/distributed systems caching#49
mheidari988 merged 2 commits intomainfrom
feature/distributed-systems-caching

Conversation

@mheidari988
Copy link
Contributor

Summary

  • Prevents Backend = Distributed from silently using MemoryDistributedCache (now throws unless a real distributed cache is registered).
  • Aligns distributed cache ExpiresAt metadata with jittered TTL.
  • Avoids eager serialization in memory cache; skips store on serialization failure.
  • Adds tests for backend guard and non-serializable memory entries.
  • Clarifies distributed backend requirements in caching README.

Testing

  • dotnet test
  • Other: not run

Checklist

  • Includes docs/changelog updates if user-facing
  • Adds/updates tests
  • Keeps public API surface minimal and backward compatible (or documents breaking change)
  • PR scoped to a single concern/module where possible

Notes

  • Breaking changes? Potentially yes: Backend = Distributed now throws if only MemoryDistributedCache is registered. Use a real distributed cache (e.g., Redis) or set Backend = Memory/Auto.
  • Related issues/links:

- prevent Backend.Distributed from accepting MemoryDistributedCache to avoid per-node behavior

- align distributed entry ExpiresAt with jittered TTL

- avoid eager serialization in memory adapter; skip store on serialization failure

- add tests for backend guard and non-serializable memory entries
- note that MemoryDistributedCache is treated as non-distributed
@mheidari988 mheidari988 self-assigned this Feb 4, 2026
@mheidari988 mheidari988 merged commit 621c6fe into main Feb 4, 2026
3 checks passed
@mheidari988 mheidari988 deleted the feature/distributed-systems-caching branch February 4, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant