File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -293,6 +293,10 @@ const myLoader = new DataLoader(someBatchLoadFn, {
293
293
})
294
294
```
295
295
296
+ More specifically, any object that implements the methods ` get() ` , ` set() ` ,
297
+ ` delete() ` and ` clear() ` methods can be provided. This allows for custom Maps
298
+ which implement various [ cache algorithms] [ ] to be provided.
299
+
296
300
297
301
## API
298
302
@@ -484,17 +488,6 @@ const usernameLoader = new DataLoader(async names => {
484
488
```
485
489
486
490
487
- ## Custom Caches
488
-
489
- DataLoader can optionally be provided a custom Map instance to use as its
490
- memoization cache. More specifically, any object that implements the methods ` get() ` ,
491
- ` set() ` , ` delete() ` and ` clear() ` can be provided. This allows for custom Maps
492
- which implement various [ cache algorithms] [ ] to be provided. By default,
493
- DataLoader uses the standard [ Map] [ ] which simply grows until the DataLoader
494
- is released. The default is appropriate when requests to your application are
495
- short-lived.
496
-
497
-
498
491
## Common Back-ends
499
492
500
493
Looking to get started with a specific back-end? Try the [ loaders in the examples directory] ( /examples ) .
You can’t perform that action at this time.
0 commit comments