memoization-caffeine/src/main/java/de/xn__ho_hia/memoization/caffeine/CaffeineMemoize.java
public static <KEY> DoubleToLongFunction doubleToLongFunction(
            final DoubleToLongFunction function,
            final DoubleFunction<KEY> keyFunction,
            final Cache<KEY, Long> cache) {
        return MapMemoize.doubleToLongFunction(function, keyFunction, cache.asMap());
    }
/**
     * <p>
     * Memoizes a {@link DoubleToLongFunction} in a Caffeine {@link Cache}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Custom cache</li>
     * <li>Custom cache key</li>
     * </ul>
     *
     * @param <KEY>
     *            The type of the cache key.
     * @param function
     *            The {@link DoubleToLongFunction} to memoize.
     * @param keyFunction
     *            The {@link DoubleFunction} to compute the cache key.
     * @param cache
     *            The {@link Cache} to use.
     * @return The wrapped {@link DoubleToLongFunction}.
     */

Memoizes a  DoubleToLongFunction in a Caffeine  Cache.

Features

Custom cache
Custom cache key


@param 
The type of the cache key.
@param function
The  DoubleToLongFunction to memoize.
@param keyFunction
The  DoubleFunction to compute the cache key.
@param cache
The  Cache to use.
@return The wrapped  DoubleToLongFunction.
Memoizes a DoubleToLongFunction in a Caffeine Cache . Features Custom cache Custom cache key @param The type of the cache key . @param function The DoubleToLongFunction to memoize . @param keyFunction The DoubleFunction to compute the cache key . @param cache The Cache to use . @return The wrapped DoubleToLongFunction .
public static <KEY> DoubleToLongFunction doubleToLongFunction(
            final DoubleToLongFunction function,
            final DoubleFunction<KEY> keyFunction,
            final Cache<KEY, Long> cache) {
        return MapMemoize.doubleToLongFunction(function, keyFunction, cache.asMap());
    }
public static < KEY > DoubleToLongFunction doubleToLongFunction ( final DoubleToLongFunction function , final DoubleFunction < KEY > keyFunction , final Cache < KEY , Long > cache ) { return MapMemoize . doubleToLongFunction ( function , keyFunction , cache . asMap ( ) ) ; }
<p>
 Memoizes a {@link DoubleToLongFunction} in a Caffeine {@link Cache}.
<p > Memoizes a { @link DoubleToLongFunction } in a Caffeine { @link Cache } .