File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export interface OptionsWithCacheInstance<
131
131
cache : CommonCache < NoInfer < TCacheKey > , Entry < NoInfer < TArgs > , NoInfer < TResult > > > ;
132
132
} ;
133
133
134
- const caches = new Set < CommonCache < any , AnyEntry > > ( ) ;
134
+ const commonCaches = new Set < CommonCache < any , AnyEntry > > ( ) ;
135
135
136
136
export function wrap <
137
137
TArgs extends any [ ] ,
@@ -179,14 +179,14 @@ export function wrap<
179
179
// since we just finished computing its value.
180
180
cache . set ( key , entry ) ;
181
181
182
- caches . add ( cache ) ;
182
+ commonCaches . add ( cache ) ;
183
183
184
184
// Clean up any excess entries in the cache, but only if there is no
185
185
// active parent entry, meaning we're not in the middle of a larger
186
186
// computation that might be flummoxed by the cleaning.
187
187
if ( ! parentEntrySlot . hasValue ( ) ) {
188
- caches . forEach ( cache => cache . clean ( ) ) ;
189
- caches . clear ( ) ;
188
+ commonCaches . forEach ( cache => cache . clean ( ) ) ;
189
+ commonCaches . clear ( ) ;
190
190
}
191
191
192
192
return value ;
You can’t perform that action at this time.
0 commit comments