Package com.djrapitops.plan.storage.file
Class ResourceCache
- java.lang.Object
-
- com.djrapitops.plan.storage.file.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()
-
-
-
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()
-
-