Interface QueryCache<ID,R>
- All Superinterfaces:
BiFunction<Iterable<ID>,
Mapper<ID, R>, reactor.core.publisher.Mono<Map<ID, R>>>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface QueryCache<ID,R>
extends BiFunction<Iterable<ID>,Mapper<ID,R>,reactor.core.publisher.Mono<Map<ID,R>>>
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <ID,
R> QueryCache<ID, R> static <ID,
R> QueryCache<ID, R> static <ID,
R> Mapper<ID, R> static <ID,
R> Mapper<ID, R> cached
(Mapper<ID, R> mapper, QueryCache<ID, R> cache) static <ID,
R> Mapper<ID, R> cached
(Mapper<ID, R> mapper, QueryCache<ID, R> cache, Duration ttl) static <ID,
R> Mapper<ID, R> Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
Method Details
-
cached
-
cached
-
cached
-
cached
-
cache
static <ID,R> QueryCache<ID,R> cache(Supplier<Map<Iterable<ID>, reactor.core.publisher.Mono<Map<ID, R>>>> mapSupplier) -
cache
-