-
Notifications
You must be signed in to change notification settings - Fork 0
fix: invalidate_cache() with no args now clears all entries #108
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6743367
fix: invalidate_cache() with no args now clears all entries (#59)
27Bslash6 47ed2b0
fix: address review — partial L2 failure, thread safety, L2 test cove…
27Bslash6 6b4f5ec
test: add async L2 backend tests to raise patch coverage to 93%
27Bslash6 f99c786
chore: add pre-commit hook to block internal docs from public repo
27Bslash6 3482a22
ci: ignore dev-only transitive CVEs in pip-audit (pip, urllib3)
27Bslash6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/bin/sh | ||
| # Block internal development artifacts from being committed to this public repo. | ||
| # Matched files belong in tooling/, strategy/, or MCP memory — not here. | ||
| echo "BLOCKED - Internal development files must not be committed to this public repo" | ||
| echo "Files:" | ||
| for f in "$@"; do echo " $f"; done | ||
| echo "Move to tooling/, strategy/, or MCP memory instead." | ||
| exit 1 |
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Synchronize
_cached_keysbefore mutating or iterating it.The wrapper adds/discards keys on the request path and iterates the same set during invalidation without any lock. Concurrent calls can raise
RuntimeError: Set changed size during iterationor miss keys that are added while the clear is in progress. Guard add/discard/snapshot/clear with a shared lock.Also applies to: 603-603, 811-811, 945-945, 1048-1048, 1175-1175, 1255-1255, 1313-1324, 1331-1331, 1352-1363, 1370-1370
🤖 Prompt for AI Agents
Process-local key tracking can't clear shared L2 state.
_cached_keysonly records keys observed by this wrapper instance. After a restart, or when another worker populates the same backend entries, no-arg invalidation will leave those L2 keys behind, soinvalidate_cache()/cache_clear()become partial for shared backends. This needs a backend-scoped registry or backend-supported function-level delete, not an in-memory set.🤖 Prompt for AI Agents