Interface VersionCache


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

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

    • 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.