Interface LoadableCache<K,V>


public interface LoadableCache<K,V>
Analog of Caffeine LoadableCache, require CacheLoader associated
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Collection<K> keys)
     
    get(K key)
    Resolve the given value for the given key.
    reactor.core.publisher.Mono<Map<K,V>>
     
    reactor.core.publisher.Mono<V>
    getAsync(K key)
    Resolve the given value for the given key.
  • Method Details

    • get

      @Nullable V get(@Nonnull K key)
      Resolve the given value for the given key.
      Parameters:
      key - The cache key
      Returns:
      value associated with the key
    • get

      @Nonnull Map<K,V> get(@Nonnull Collection<K> keys)
    • getAsync

      @Nonnull reactor.core.publisher.Mono<V> getAsync(@Nonnull K key)
      Resolve the given value for the given key.
      Parameters:
      key - The cache key
      Returns:
      value associated with the key or Mono.empty() if no value is specified
    • getAsync

      @Nonnull reactor.core.publisher.Mono<Map<K,V>> getAsync(@Nonnull Collection<K> keys)