@prisma/orm-extension-middleware-cache 8.0.0-rc.8 → 8.0.0-rc.8-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -17,7 +17,3 @@ import { cache, cacheAnnotation, type CacheStore } from '@prisma/orm-extension-m
|
|
|
17
17
|
A runtime middleware that short-circuits repeated reads: on a hit it returns cached rows and never invokes the driver; on a miss it buffers the driver's rows and commits them to the store only when the execution completes successfully. Cache keys come from the family runtime's content hash of the execution, or from a per-query `cacheAnnotation({ key })` override; `ttl` and `skip` are per-query too. Connection- and transaction-scoped executions bypass the cache.
|
|
18
18
|
|
|
19
19
|
It ships an in-memory LRU-with-TTL store and exposes the `CacheStore` interface so Redis, Memcached, or any other backend can be dropped in.
|
|
20
|
-
|
|
21
|
-
## Dependencies
|
|
22
|
-
|
|
23
|
-
`@prisma/orm-framework` at an exact lockstep version, and nothing else. It depends on no family runtime and no target, which is why one middleware serves every database.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-extension-middleware-cache",
|
|
3
|
-
"version": "8.0.0-rc.8",
|
|
3
|
+
"version": "8.0.0-rc.8-dev.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.8"
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.8-dev.2"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@internal/middleware-cache": "8.0.0-rc.8",
|
|
16
|
-
"@repo/tsconfig": "8.0.0-rc.8",
|
|
17
|
-
"@repo/tsdown": "8.0.0-rc.8",
|
|
15
|
+
"@internal/middleware-cache": "8.0.0-rc.8-dev.2",
|
|
16
|
+
"@repo/tsconfig": "8.0.0-rc.8-dev.2",
|
|
17
|
+
"@repo/tsdown": "8.0.0-rc.8-dev.2",
|
|
18
18
|
"tsdown": "0.22.14",
|
|
19
19
|
"typescript": "5.9.3"
|
|
20
20
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/prisma/
|
|
35
|
+
"url": "https://github.com/prisma/orm.git",
|
|
36
36
|
"directory": "packages/9-public/@prisma/orm-extension-middleware-cache"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|