Interface CustomCache


  • public interface CustomCache
    A cache used by scripts
    • Method Detail

      • clear

        void clear()
        Evicts all keys from cache
      • evict

        void evict​(Serializable... keys)
        Evicts the given keys from cache
      • get

        Object get​(Serializable key,
                   Supplier<Object> producer)
        Returns the currently cached value for the given key. If no value is cached, the given producer is used to create one.