memoization-caffeine/src/main/java/de/xn__ho_hia/memoization/caffeine/CaffeineMemoize.java
public static <FIRST, SECOND, KEY> ToDoubleBiFunction<FIRST, SECOND> toDoubleBiFunction(
            final ToDoubleBiFunction<FIRST, SECOND> function,
            final BiFunction<FIRST, SECOND, KEY> keyFunction) {
        return toDoubleBiFunction(function, keyFunction, Caffeine.newBuilder().build());
    }
/**
     * <p>
     * Memoizes a {@link ToDoubleBiFunction} in a Caffeine {@link Cache}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Default cache</li>
     * <li>Custom cache key</li>
     * </ul>
     *
     * @param <FIRST>
     *            The type of the first parameter.
     * @param <SECOND>
     *            The type of the second parameter.
     * @param <KEY>
     *            The type of the cache key.
     * @param function
     *            The {@link ToDoubleBiFunction} to memoize.
     * @param keyFunction
     *            The {@link BiFunction} to compute the cache key.
     * @return The wrapped {@link ToDoubleBiFunction}.
     */

Memoizes a  ToDoubleBiFunction in a Caffeine  Cache.

Features

Default cache
Custom cache key


@param 
The type of the first parameter.
@param 
The type of the second parameter.
@param 
The type of the cache key.
@param function
The  ToDoubleBiFunction to memoize.
@param keyFunction
The  BiFunction to compute the cache key.
@return The wrapped  ToDoubleBiFunction.
Memoizes a ToDoubleBiFunction in a Caffeine Cache . Features Default cache Custom cache key @param The type of the first parameter . @param The type of the second parameter . @param The type of the cache key . @param function The ToDoubleBiFunction to memoize . @param keyFunction The BiFunction to compute the cache key . @return The wrapped ToDoubleBiFunction .
public static <FIRST, SECOND, KEY> ToDoubleBiFunction<FIRST, SECOND> toDoubleBiFunction(
            final ToDoubleBiFunction<FIRST, SECOND> function,
            final BiFunction<FIRST, SECOND, KEY> keyFunction) {
        return toDoubleBiFunction(function, keyFunction, Caffeine.newBuilder().build());
    }
public static < FIRST , SECOND , KEY > ToDoubleBiFunction < FIRST , SECOND > toDoubleBiFunction ( final ToDoubleBiFunction < FIRST , SECOND > function , final BiFunction < FIRST , SECOND , KEY > keyFunction ) { return toDoubleBiFunction ( function , keyFunction , Caffeine . newBuilder ( ) . build ( ) ) ; }
<p>
 Memoizes a {@link ToDoubleBiFunction} in a Caffeine {@link Cache}.
<p > Memoizes a { @link ToDoubleBiFunction } in a Caffeine { @link Cache } .