Interface FileCache

    • Method Detail

      • isValid

        boolean isValid​(String key)
        Check if file under given key, is valid.
        Parameters:
        key - key to check
        Returns:
        true - if file exists and is valid. False otherwise.
      • getFile

        @NotNull
        File getFile​(@NotNull
                     String key)
              throws IOException
        Get cached file. Ensures file is in cache directory and is valid. Updates file, if necessary.
        Parameters:
        key - key for file.
        Returns:
        file in cache directory
        Throws:
        IOException - if error occures.