Skip to content

Commit 42977ed

Browse files
committed
refactor: rename RequestSpecificInMemoryCache to RequestScopedInMemoryCache
1 parent 41bca90 commit 42977ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/run/regional-blob-store.cts

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ function getInMemoryLRUCache() {
103103
return extendedGlobalThis[IN_MEMORY_LRU_CACHE]
104104
}
105105

106-
interface RequestSpecificInMemoryCache {
106+
interface RequestScopedInMemoryCache {
107107
get(key: string): BlobType | null | Promise<BlobType | null> | undefined
108108
set(key: string, value: BlobType | null | Promise<BlobType | null>): void
109109
}
110110

111-
const noOpInMemoryCache: RequestSpecificInMemoryCache = {
111+
const noOpInMemoryCache: RequestScopedInMemoryCache = {
112112
get(): undefined {
113113
// no-op
114114
},
@@ -117,7 +117,7 @@ const noOpInMemoryCache: RequestSpecificInMemoryCache = {
117117
},
118118
}
119119

120-
const getRequestSpecificInMemoryCache = (): RequestSpecificInMemoryCache => {
120+
const getRequestSpecificInMemoryCache = (): RequestScopedInMemoryCache => {
121121
const requestContext = getRequestContext()
122122
if (!requestContext) {
123123
// Fallback to a no-op store if we can't find request context

0 commit comments

Comments
 (0)