Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix wrap function: nested wrap call on other cache instance - results in deadlock #967

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

yaronyam
Copy link
Contributor

@yaronyam yaronyam commented Jan 3, 2025

wrap function: nested wrap call on other cache instance with same key - results in deadlock, where wrap function call hangs indefinitely

@jaredwray
Copy link
Owner

@yaronyam - can you resolve the conflicts from the previous merge so I can review?

…lts in deadlock - wrap function hangs indefinitely.
…o bugfix/nested_wrap_deadlock

# Conflicts:
#	packages/cache-manager/test/wrap.test.ts
@yaronyam
Copy link
Contributor Author

yaronyam commented Jan 4, 2025

sure. updated

@jaredwray
Copy link
Owner

@yaronyam - thanks for your work on this. I make this an enhancement as I would like to provide the cacheId option on the options.

@yaronyam
Copy link
Contributor Author

yaronyam commented Jan 4, 2025

cool 👍

@jaredwray
Copy link
Owner

cool 👍

Let me know when you get those changes in and I will get this merged.

… random string.

expose Cache#cacheId() method to return cacheId.
@yaronyam
Copy link
Contributor Author

yaronyam commented Jan 6, 2025

updated with cacheId as an optional cache option, defaults to random string.
added Cache#cacheId() method to return cacheId.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants