Interface VersionCache


  • public interface VersionCache
    Parse exiftool version and put it in a cache.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Invalidate all entries.
      Version load​(String exifTool, CommandExecutor executor)
      Execute exiftool using given executor to get version of exiftool executable and put results in a cache.
      long size()
      Get current size of cache (a.k.a number of entries).
    • Method Detail

      • load

        Version load​(String exifTool,
                     CommandExecutor executor)
        Execute exiftool using given executor to get version of exiftool executable and put results in a cache.
        Parameters:
        exifTool - Path of exiftool executable.
        executor - Executor used to execute exiftool command.
        Returns:
        Version, null if version cannot be parsed.
      • size

        long size()
        Get current size of cache (a.k.a number of entries).
        Returns:
        Cache Size.
      • clear

        void clear()
        Invalidate all entries.