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

Memoizes a  LongUnaryOperator in a Caffeine  Cache.

Features

Default cache
Custom cache key


@param 
The type of the cache key.
@param operator
The  LongUnaryOperator to memoize.
@param keyFunction
The  LongFunction to compute the cache key.
@return The wrapped  LongUnaryOperator.
Memoizes a LongUnaryOperator in a Caffeine Cache . Features Default cache Custom cache key @param The type of the cache key . @param operator The LongUnaryOperator to memoize . @param keyFunction The LongFunction to compute the cache key . @return The wrapped LongUnaryOperator .
public static <KEY> LongUnaryOperator longUnaryOperator(
            final LongUnaryOperator operator,
            final LongFunction<KEY> keyFunction) {
        return longUnaryOperator(operator, keyFunction, Caffeine.newBuilder().build());
    }
public static < KEY > LongUnaryOperator longUnaryOperator ( final LongUnaryOperator operator , final LongFunction < KEY > keyFunction ) { return longUnaryOperator ( operator , keyFunction , Caffeine . newBuilder ( ) . build ( ) ) ; }
<p>
 Memoizes a {@link LongUnaryOperator} in a Caffeine {@link Cache}.
<p > Memoizes a { @link LongUnaryOperator } in a Caffeine { @link Cache } .