public static <K extends Serializable, V extends Serializable> CaffeineCache of( com.github.benmanes.caffeine.cache.Cache<K,V> cache, String name )
    {
        return new CaffeineCache<>( cache, name );
    }
Wraps a Caffeine cache in an implementation that's Compatible with {@link Cache}.

@param cache The cache to be wrapped (cannot be null).
@param name A human-readable name for the cache that's wrapped.
@param <K> Cache key type.
@param <V> Cache value type.
@return A wrapped cache (never null).
@throws IllegalArgumentException when the cache configuration does not conform to the contract defined in the javadoc of this class.
xmppserver/src/main/java/org/jivesoftware/util/cache/CaffeineCache.java