options.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "type": "object",
  3. "properties": {
  4. "cacheContext": {
  5. "description": "The default cache context in order to generate the cache relatively to a path. By default it will use absolute paths.",
  6. "type": "string"
  7. },
  8. "cacheKey": {
  9. "description": "Allows you to override default cache key generator.",
  10. "instanceof": "Function"
  11. },
  12. "cacheIdentifier": {
  13. "description": "Provide a cache directory where cache items should be stored (used for default read/write implementation).",
  14. "type": "string"
  15. },
  16. "cacheDirectory": {
  17. "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).",
  18. "type": "string"
  19. },
  20. "compare": {
  21. "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.",
  22. "instanceof": "Function"
  23. },
  24. "precision": {
  25. "description": "Round mtime by this number of milliseconds both for stats and deps before passing those params to the comparing function.",
  26. "type": "number"
  27. },
  28. "read": {
  29. "description": "Allows you to override default read cache data from file.",
  30. "instanceof": "Function"
  31. },
  32. "readOnly": {
  33. "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).",
  34. "type": "boolean"
  35. },
  36. "write": {
  37. "description": "Allows you to override default write cache data to file (e.g. Redis, memcached).",
  38. "instanceof": "Function"
  39. }
  40. },
  41. "additionalProperties": false
  42. }