Class S3Cache

java.lang.Object
com.axelor.file.store.s3.S3Cache

public class S3Cache extends Object
A caching when working with S3 as file storage using LRU (Least Recently Used) strategy: the element that hasn't been used for the longest time will be evicted from the cache
  • Field Details

    • CACHE_ENABLED

      public static final boolean CACHE_ENABLED
  • Method Details

    • getInstance

      public static S3Cache getInstance()
    • get

      public Path get(String fileName)
    • put

      public File put(File file, String fileName)
    • put

      public File put(InputStream inputStream, String fileName)
    • remove

      public boolean remove(String fileName)
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • clear

      public void clear()