public static <T, V> Cache<T, V> newCache(final SimpleCacheProperties cache,
                                              final Expiry<T, V> expiryAfter) {
        return newCacheBuilder(cache)
            .expireAfter(expiryAfter)
            .build();
    }
New cache.

@param <T>         the type parameter
@param <V>         the type parameter
@param cache       the cache
@param expiryAfter the expiry after
@return the cache
api/cas-server-core-api-configuration-model/src/main/java/org/apereo/cas/configuration/support/Beans.java