Skip to main content

Interface: CacheSettings

Defined in: cspell-types/dist/index.d.mts:1111

Properties

cacheFormat?

optional cacheFormat: CacheFormat

Defined in: cspell-types/dist/index.d.mts:1137

Format of the cache file.

  • legacy - use absolute paths in the cache file
  • universal - use a sharable format.

Default

'universal'

cacheLocation?

optional cacheLocation: string

Defined in: cspell-types/dist/index.d.mts:1125

Path to the cache location. Can be a file or a directory. If none specified .cspellcache will be used. Relative paths are relative to the config file in which it is defined.

A prefix of ${cwd} is replaced with the current working directory.


cacheStrategy?

optional cacheStrategy: CacheStrategy

Defined in: cspell-types/dist/index.d.mts:1130

Strategy to use for detecting changed files, default: metadata

Default

'metadata'

useCache?

optional useCache: boolean

Defined in: cspell-types/dist/index.d.mts:1116

Store the results of processed files in order to only operate on the changed ones.

Default

false