Class ResourceCache


  • public class ResourceCache
    extends java.lang.Object
    In-memory cache for different resources on disk or jar.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void cache​(java.lang.String resourceName, java.lang.String got)  
      static void cleanUp()  
      static java.util.List<java.lang.String> getCachedResourceNames()  
      static Resource getOrCache​(java.lang.String resourceName, java.util.function.Supplier<Resource> resourceSupplier)  
      static void invalidateAll()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getOrCache

        public static Resource getOrCache​(java.lang.String resourceName,
                                          java.util.function.Supplier<Resource> resourceSupplier)
      • cache

        public static void cache​(java.lang.String resourceName,
                                 java.lang.String got)
      • invalidateAll

        public static void invalidateAll()
      • cleanUp

        public static void cleanUp()
      • getCachedResourceNames

        public static java.util.List<java.lang.String> getCachedResourceNames()