memoization-caffeine/src/main/java/de/xn__ho_hia/memoization/caffeine/CaffeineMemoize.java
public static <INPUT, KEY> ObjDoubleConsumer<INPUT> objDoubleConsumer(
            final ObjDoubleConsumer<INPUT> consumer,
            final ObjDoubleFunction<INPUT, KEY> keyFunction) {
        return objDoubleConsumer(consumer, keyFunction, Caffeine.newBuilder().build());
    }
/**
     * <p>
     * Memoizes a {@link ObjDoubleConsumer} in a Caffeine {@link Cache}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Default cache</li>
     * <li>Custom cache key</li>
     * </ul>
     *
     * @param <INPUT>
     *            The type of the input.
     * @param <KEY>
     *            The type of the cache key.
     * @param consumer
     *            The {@link ObjDoubleConsumer} to memoize.
     * @param keyFunction
     *            The {@link ObjDoubleFunction} to compute the cache key.
     * @return The wrapped {@link ObjDoubleConsumer}.
     */

Memoizes a  ObjDoubleConsumer in a Caffeine  Cache.

Features

Default cache
Custom cache key


@param 
The type of the input.
@param 
The type of the cache key.
@param consumer
The  ObjDoubleConsumer to memoize.
@param keyFunction
The  ObjDoubleFunction to compute the cache key.
@return The wrapped  ObjDoubleConsumer.
Memoizes a ObjDoubleConsumer in a Caffeine Cache . Features Default cache Custom cache key @param The type of the input . @param The type of the cache key . @param consumer The ObjDoubleConsumer to memoize . @param keyFunction The ObjDoubleFunction to compute the cache key . @return The wrapped ObjDoubleConsumer .
public static <INPUT, KEY> ObjDoubleConsumer<INPUT> objDoubleConsumer(
            final ObjDoubleConsumer<INPUT> consumer,
            final ObjDoubleFunction<INPUT, KEY> keyFunction) {
        return objDoubleConsumer(consumer, keyFunction, Caffeine.newBuilder().build());
    }
public static < INPUT , KEY > ObjDoubleConsumer < INPUT > objDoubleConsumer ( final ObjDoubleConsumer < INPUT > consumer , final ObjDoubleFunction < INPUT , KEY > keyFunction ) { return objDoubleConsumer ( consumer , keyFunction , Caffeine . newBuilder ( ) . build ( ) ) ; }
<p>
 Memoizes a {@link ObjDoubleConsumer} in a Caffeine {@link Cache}.
<p > Memoizes a { @link ObjDoubleConsumer } in a Caffeine { @link Cache } .