Class CaffeineCache

java.lang.Object
ru.progrm_jarvis.javacommons.cache.CaffeineCache

public final class CaffeineCache extends Object
Utilities for creation of Caffeine-based cache factories.
  • Method Details

    • createFactory

      @NotNull public static @NotNull CacheFactory createFactory()
      Creates a Caffeine Cache factory.
      Returns:
      created Caffeine Cache factory
      Throws:
      IllegalStateException - if Caffeine is not available
    • tryCreateFactory

      @Nullable public static @Nullable CacheFactory tryCreateFactory()
      Attempts to create a Caffeine Cache factory.
      Returns:
      created Caffeine Cache factory or null if it is unavailable