This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
/
options.json
42 lines (42 loc) · 1.74 KB
/
options.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"type": "object",
"properties": {
"cacheContext": {
"description": "The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",
"type": "string"
},
"cacheKey": {
"description": "Allows you to override default cache key generator.",
"instanceof": "Function"
},
"cacheIdentifier": {
"description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
"type": "string"
},
"cacheDirectory": {
"description": "Provide an invalidation identifier which is used to generate the hashes. You can use it for extra dependencies of loaders (used for default read/write implementation).",
"type": "string"
},
"compare": {
"description": "Allows you to override default comparison function between the cached dependency and the one is being read. Return true to use the cached resource.",
"instanceof": "Function"
},
"precision": {
"description": "Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",
"type": "number"
},
"read": {
"description": "Allows you to override default read cache data from file.",
"instanceof": "Function"
},
"readOnly": {
"description": "Allows you to override default value and make the cache read only (useful for some environments where you don't want the cache to be updated, only read from it).",
"type": "boolean"
},
"write": {
"description": "Allows you to override default write cache data to file (e.g. Redis, memcached).",
"instanceof": "Function"
}
},
"additionalProperties": false
}