You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 27, 2020. It is now read-only.
|**`cacheContext`**|`{String}`|`undefined`| Allows you to override the default cache context in order to generate the cache relatively to a path. By default it will use absolute paths |
52
-
|**`cacheKey`**|`{Function(options, request) -> {String}}`|`undefined`| Allows you to override default cache key generator |
53
-
|**`cacheDirectory`**|`{String}`|`path.resolve('.cache-loader')`| Provide a cache directory where cache items should be stored (used for default read/write implementation)|
54
-
|**`cacheIdentifier`**|`{String}`|`cache-loader:{version} {process.env.NODE_ENV}`| 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) |
55
-
|**`write`**|`{Function(cacheKey, data, callback) -> {void}}`|`undefined`| Allows you to override default write cache data to file (e.g. Redis, memcached) |
56
-
|**`read`**|`{Function(cacheKey, callback) -> {void}}`|`undefined`| Allows you to override default read cache data from file |
57
-
|**`readOnly`**|`{Boolean}`|`false`| 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) |
|**`cacheContext`**|`{String}`|`undefined`| Allows you to override the default cache context in order to generate the cache relatively to a path. By default it will use absolute paths |
52
+
|**`cacheKey`**|`{Function(options, request) -> {String}}`|`undefined`| Allows you to override default cache key generator |
53
+
|**`cacheDirectory`**|`{String}`|`findCacheDir({ name: 'cache-loader' }) or os.tmpdir()`| Provide a cache directory where cache items should be stored (used for default read/write implementation) |
54
+
|**`cacheIdentifier`**|`{String}`|`cache-loader:{version} {process.env.NODE_ENV}`| 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) |
55
+
|**`write`**|`{Function(cacheKey, data, callback) -> {void}}`|`undefined`| Allows you to override default write cache data to file (e.g. Redis, memcached) |
56
+
|**`read`**|`{Function(cacheKey, callback) -> {void}}`|`undefined`| Allows you to override default read cache data from file |
57
+
|**`readOnly`**|`{Boolean}`|`false`| 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) |
0 commit comments