memoization-caffeine/src/main/java/de/xn__ho_hia/memoization/caffeine/CaffeineMemoize.java
public static LongToDoubleFunction longToDoubleFunction(
            final LongToDoubleFunction function,
            final Cache<Long, Double> cache) {
        return longToDoubleFunction(function, Long::valueOf, cache);
    }
/**
     * <p>
     * Memoizes a {@link LongToDoubleFunction} in a Caffeine {@link Cache}.
     * </p>
     * <h3>Features</h3>
     * <ul>
     * <li>Custom cache</li>
     * <li>Default cache key</li>
     * </ul>
     *
     * @param function
     *            The {@link LongToDoubleFunction} to memoize.
     * @param cache
     *            The {@link Cache} to use.
     * @return The wrapped {@link LongToDoubleFunction}.
     */

Memoizes a  LongToDoubleFunction in a Caffeine  Cache.

Features

Custom cache
Default cache key


@param function
The  LongToDoubleFunction to memoize.
@param cache
The  Cache to use.
@return The wrapped  LongToDoubleFunction.
Memoizes a LongToDoubleFunction in a Caffeine Cache . Features Custom cache Default cache key @param function The LongToDoubleFunction to memoize . @param cache The Cache to use . @return The wrapped LongToDoubleFunction .
public static LongToDoubleFunction longToDoubleFunction(
            final LongToDoubleFunction function,
            final Cache<Long, Double> cache) {
        return longToDoubleFunction(function, Long::valueOf, cache);
    }
public static LongToDoubleFunction longToDoubleFunction ( final LongToDoubleFunction function , final Cache < Long , Double > cache ) { return longToDoubleFunction ( function , Long :: valueOf , cache ) ; }
<p>
 Memoizes a {@link LongToDoubleFunction} in a Caffeine {@link Cache}.
<p > Memoizes a { @link LongToDoubleFunction } in a Caffeine { @link Cache } .