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
fix(redis-strings): prevent mapping tables deletion before cache purge (#3)
This PR addresses a critical data consistency issue in the delete method where
mapping table entries could be removed before the cache was successfully cleared.
By reversing the operation order to clear cache after mapping tables are updated,
we ensure that even in failure scenarios, the cache can still be revalidated
through tags.
Previously, concurrent operations in Promise.all could lead to orphaned cache
entries with no way to revalidate them via tags, potentially serving stale data
indefinitely. This change provides a more robust cache invalidation strategy
that prioritizes data consistency over performance.
0 commit comments