Skip to content

Conversation

@hedibouattour
Copy link
Collaborator

Previously, entries were cached by entry key only. This caused issues when multiple services referenced the same entry.

This update changes the caching logic to:

  • Cache each entry by service ID while allowing multiple services to target the same entry.

  • When multiple services reference the same entry, override the previous value and keep the latest.

  • On service entry deletion, check whether other services still reference the same entry; if so, recreate the entry.

This ensures consistent behavior when entries are shared across services.

@hedibouattour hedibouattour marked this pull request as draft December 9, 2025 16:58
@hedibouattour hedibouattour force-pushed the refactor-service-caching branch from 33935b7 to f8d2794 Compare December 9, 2025 17:10
@hedibouattour hedibouattour self-assigned this Dec 9, 2025
@hedibouattour hedibouattour force-pushed the refactor-service-caching branch from f8d2794 to ea85208 Compare December 10, 2025 16:54
@hedibouattour hedibouattour marked this pull request as ready for review December 10, 2025 16:55
@hedibouattour hedibouattour requested a review from sknat December 10, 2025 17:22
Previously, entries were cached by entry key only. This caused issues when multiple services referenced the same entry.

This update changes the caching logic to:

* Cache each entry by service ID while allowing multiple services to target the same entry.

* When multiple services reference the same entry, override the previous value and keep the latest.

* On service entry deletion, check whether other services still reference the same entry; if so, recreate the entry.

This ensures consistent behavior when entries are shared across services.
@hedibouattour hedibouattour force-pushed the refactor-service-caching branch from ea85208 to 35634e5 Compare December 15, 2025 15:20
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