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.
* docs(na): add new readOnly option to the readme file
* docs(na): reapply default configs for readme on tests
* chore(na): add readOnly option to the schema-utils validate function
* feat(na): added readOnly option defaults
* feat(na): enable readOnly mode for cache loader
* docs(na): explanation for readOnly option under loader function
* docs(na): explanation for readOnly option under pitch function
Copy file name to clipboardExpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ module.exports = {
54
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
55
|**`write`**|`{Function(cacheKey, data, callback) -> {void}}`|`undefined`| Allows you to override default write cache data to file (e.g. Redis, memcached) |
56
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