Interface FilesCache

    • Method Detail

      • putFile

        void putFile​(FileObject file)
        add a fileobject to the cache
        Parameters:
        file - the file
      • getFile

        FileObject getFile​(FileSystem filesystem,
                           FileName name)
        retrieve a file from the cache by its name
        Parameters:
        name - the name
        Returns:
        the fileobject or null if file is not cached
      • clear

        void clear​(FileSystem filesystem)
        purge the entries corresponding to the filesystem
      • close

        void close()
        purge the whole cache
      • removeFile

        void removeFile​(FileSystem filesystem,
                        FileName name)
        removes a file from cache
        Parameters:
        filesystem - filesystem
        name - filename