Class QuarkusInternalCache<K,V>

java.lang.Object
io.quarkus.hibernate.orm.runtime.service.internalcache.QuarkusInternalCache<K,V>
All Implemented Interfaces:
org.hibernate.internal.util.cache.InternalCache<K,V>

final class QuarkusInternalCache<K,V> extends Object implements org.hibernate.internal.util.cache.InternalCache<K,V>
  • Constructor Details

    • QuarkusInternalCache

      public QuarkusInternalCache(com.github.benmanes.caffeine.cache.Cache<K,V> caffeineCache)
  • Method Details

    • heldElementsEstimate

      public int heldElementsEstimate()
      Specified by:
      heldElementsEstimate in interface org.hibernate.internal.util.cache.InternalCache<K,V>
    • get

      public V get(K key)
      Specified by:
      get in interface org.hibernate.internal.util.cache.InternalCache<K,V>
    • put

      public void put(K key, V value)
      Specified by:
      put in interface org.hibernate.internal.util.cache.InternalCache<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface org.hibernate.internal.util.cache.InternalCache<K,V>
    • computeIfAbsent

      public V computeIfAbsent(K key, Function<? super K,? extends V> mappingFunction)
      Specified by:
      computeIfAbsent in interface org.hibernate.internal.util.cache.InternalCache<K,V>