You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add private helper methods InvalidateSMLCache() and InvalidateSMLCacheIfChanged()
to centralize cache invalidation logic and reduce code duplication.
This improves maintainability by:
- Centralizing cache invalidation logic in dedicated methods
- Reducing code duplication across AddMN, RemoveMN, UpdateMN, and Unserialize
- Making cache invalidation patterns consistent and easier to maintain
- Providing both unconditional and conditional invalidation helpers
The conditional invalidation method preserves the optimization in UpdateMN
where cache is only invalidated if the SML entry actually changed.
0 commit comments