This repository was archived by the owner on Jul 3, 2019. It is now read-only.
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -329,25 +329,25 @@ request.get(
329
329
330
330
` cacache.put ` functions have a number of options in common.
331
331
332
- ##### ` metadata `
332
+ ##### ` opts. metadata`
333
333
334
334
Arbitrary metadata to be attached to the inserted key.
335
335
336
- ##### ` size `
336
+ ##### ` opts. size`
337
337
338
338
If provided, the data stream will be verified to check that enough data was
339
339
passed through. If there's more or less data than expected, insertion will fail
340
340
with an ` EBADSIZE ` error.
341
341
342
- ##### ` integrity `
342
+ ##### ` opts. integrity`
343
343
344
344
If present, the pre-calculated digest for the inserted content. If this option
345
345
if provided and does not match the post-insertion digest, insertion will fail
346
346
with an ` EBADCHECKSUM ` error.
347
347
348
348
` hashAlgorithm ` has no effect if this option is present.
349
349
350
- ##### ` hashAlgorithm `
350
+ ##### ` opts. hashAlgorithm`
351
351
352
352
Default: 'sha512'
353
353
@@ -357,14 +357,14 @@ for inserted data. Can use any algorithm listed in `crypto.getHashes()` or
357
357
` 'omakase' ` /` 'お任せします' ` to pick a random hash algorithm on each insertion. You
358
358
may also use any anagram of ` 'modnar' ` to use this feature.
359
359
360
- ##### ` uid ` /` gid `
360
+ ##### ` opts. uid` /` opts. gid`
361
361
362
362
If provided, cacache will do its best to make sure any new files added to the
363
363
cache use this particular ` uid ` /` gid ` combination. This can be used,
364
364
for example, to drop permissions when someone uses ` sudo ` , but cacache makes
365
365
no assumptions about your needs here.
366
366
367
- ##### ` memoize `
367
+ ##### ` opts. memoize`
368
368
369
369
Default: null
370
370
You can’t perform that action at this time.
0 commit comments