-
Notifications
You must be signed in to change notification settings - Fork 5
feat: implement caching middleware #385
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
Open
aqrln
wants to merge
21
commits into
main
Choose a base branch
from
cache-middleware-impl
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f06ab94
feat(framework-components): add scope field to RuntimeMiddlewareContext
aqrln c89823b
feat(framework-components): add defineAnnotation with operation-kind …
aqrln 5342ca6
test(framework-components): cover defineAnnotation, ValidAnnotations,…
aqrln 2e11d8f
feat(sql-builder): add .annotate() to all SQL DSL builders
aqrln 8498c2b
test(sql-builder): cover .annotate() across all five SQL DSL builders
aqrln e87f41f
feat(sql-orm-client): add .annotate() arg to read terminals (all, first)
aqrln 07b715d
test(sql-orm-client): cover .annotate() arg on read terminals (all, f…
aqrln 93a44f1
feat(sql-orm-client): add .annotate() arg to write terminals (create,…
aqrln 2c2ef96
feat(sql-orm-client): add .annotate() arg to aggregate terminals plus…
aqrln cfbd324
feat(middleware-cache): scaffold @prisma-next/middleware-cache package
aqrln f8f1a65
feat(middleware-cache): add cacheAnnotation handle and CachePayload
aqrln 8b6be5a
feat(middleware-cache): add CacheStore interface and in-memory LRU de…
aqrln 362a34d
feat(middleware-cache): implement createCacheMiddleware with intercep…
aqrln bcd7706
test(middleware-cache): integration tests against real Postgres
aqrln f055ec2
docs(runtime-subsystem): document intercept hook, annotations, and ca…
aqrln 29a243a
feat(prisma-next-demo): add cache middleware examples
aqrln ab56351
docs: plan more ergonomic annotation api
aqrln c517d93
feat(framework-components): infer annotations' `applicableTo` type
aqrln 1a574d9
refactor(framework-components): drop `apply` from annotation handles
aqrln 7a713ed
docs: revisit the annotation api
aqrln f99e5b0
refactor(sql-orm-client): change the annotation api
aqrln 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
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
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.
Add language specification to the fenced code block.
The fenced code block should specify a language identifier for proper rendering and to satisfy markdown linting rules.
📝 Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 markdownlint-cli2 (0.22.1)
[warning] 145-145: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents