Class AbstractCache

    • Constructor Detail

      • AbstractCache

        public AbstractCache()
    • Method Detail

      • getName

        public abstract String getName()
      • getDefaultKey

        public Object getDefaultKey()
        Returns the unique and immutable default key for the current cache. This key is used by the annotations caching API when a no-args method annotated with CacheResult or CacheInvalidate is invoked.
        Returns:
        default cache key
      • invalidate

        public abstract void invalidate​(Object key)
      • invalidateAll

        public abstract void invalidateAll()
      • replaceUniValue

        public abstract io.smallrye.mutiny.Uni<Void> replaceUniValue​(Object key,
                                                                     Object emittedValue)
        Replaces the cache value associated with the given key by an item emitted by a Uni. This method can be called several times for the same key, each call will then always replace the existing cache entry with the given emitted value. If the key no longer identifies a cache entry, this method must not put the emitted item into the cache.