Class DirectoryBuildCache

  • All Implemented Interfaces:
    BuildCache

    public abstract class DirectoryBuildCache
    extends AbstractBuildCache
    Configuration object for the local directory build cache.
    Since:
    3.5
    • Constructor Detail

      • DirectoryBuildCache

        public DirectoryBuildCache()
    • Method Detail

      • getDirectory

        @Nullable
        public java.lang.Object getDirectory()
        Returns the directory to use to store the build cache.
      • setDirectory

        public void setDirectory​(@Nullable
                                 java.lang.Object directory)
        Sets the directory to use to store the build cache. The directory is evaluated as per Project.file(Object).
      • getRemoveUnusedEntriesAfterDays

        @Deprecated
        public int getRemoveUnusedEntriesAfterDays()
        Deprecated.
        Returns the number of days after unused entries are garbage collected. Defaults to 7 days.
        Since:
        4.6
      • setRemoveUnusedEntriesAfterDays

        @Deprecated
        public void setRemoveUnusedEntriesAfterDays​(int removeUnusedEntriesAfterDays)
        Deprecated.
        Sets the number of days after unused entries are garbage collected. Defaults to 7 days. Must be greater than 1.
        Since:
        4.6