-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mlcache) correctly propagate invalidation events
Sibling instances on different workers would not receive invalidation events since those are sent under the namespace of the publishing worker, which has a different address for its mlcache instances than others (potentially). Instead of relying on the memory address, we now require users of mlcache to simply name their cache. Several mlcache instances bearing the same name are simply sharing the same data (same LRU and same namespace in the shared dict). In order to properly GC our instances, we must now keep track of how many instances are using the same name and thuse, only GC an LRU instance if no mlcache instance is using it (0 references left).
- Loading branch information
1 parent
d9fb7ad
commit 7a9d030
Showing
9 changed files
with
302 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.