Class TransientCache<K,​V>

  • All Implemented Interfaces:
    Serializable

    @Experimental
    @ThreadSafe
    public final class TransientCache<K,​V>
    extends Object
    implements Serializable
    Cache that is transient but can be declared final in serializable objects. See https://stackoverflow.com/a/26785954/5810524 EXPERIMENTAL
    See Also:
    Serialized Form
    • Constructor Detail

      • TransientCache

        public TransientCache()
    • Method Detail

      • invalidate

        public void invalidate()
      • get

        public V get​(K name)
      • put

        public void put​(K name,
                        V value)
      • remove

        public void remove​(K name)