Class ResourceCache

java.lang.Object
com.djrapitops.plan.storage.file.ResourceCache

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

    • getOrCache

      public static Resource getOrCache(String resourceName, Supplier<Resource> resourceSupplier)
    • cache

      public static void cache(String resourceName, String contents, long lastModifiedDate)
    • invalidateAll

      public static void invalidateAll()
    • cleanUp

      public static void cleanUp()
    • getCachedResourceNames

      public static List<String> getCachedResourceNames()