name | name of the cache instance |
Yes |
basedir | the path of the base directory to use to put repository cache data. This should not point to a directory used as a repository! |
No, defaults to repositoryCacheDir defined in [[settings/caches]] |
ivyPattern | the pattern to use to store cached ivy files |
No, defaults to default cache ivy pattern as configured in [[settings/caches]] |
artifactPattern | the pattern to use to store cached artifacts |
No, defaults to default cache artifact pattern as configured in [[settings/caches]] |
useOrigin | true to avoid the copy of local artifacts to the cache and use directly their original location, false otherwise.
To know if an artifact is local ivy asks to the resolver. Only filesystem resolver is considered local by default, but this can be disabled if you want to force the copy on one filesystem resolver and use the original location on another. Note that it is safe to use useOrigin even if you use the cache for some non local resolvers. In this case the cache will behave as usual, copying files to the cache. Note also that this only applies to artifacts, not to ivy files, which are still copied in the cache. |
No. defaults to the default value configured in [[settings/caches]] |
lockStrategy | the name of the [[settings/lock-strategies lock strategy]] to use for this cache |
No, defaults to default lock strategy as configured in [[settings/caches]] |
defaultTTL | the default [[settings/caches/ttl TTL]] to use when no specific one is defined |
No, defaults to ${ivy.cache.ttl.default} |
memorySize | the number of parsed module descriptors to keep in a memory cache. | No, default to 150 |