Skip to content
Snippets Groups Projects

feat(cache): Add ability to bypass in-memory caching layer by type

Merged Martin Lowe requested to merge malowe/main/114 into main
15 files
+ 163
38
Compare changes
  • Side-by-side
  • Inline
Files
15
/*********************************************************************
* Copyright (c) 2025 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipsefoundation.caching.config;
import java.util.List;
import java.util.Optional;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
/**
*
*/
@ConfigMapping(prefix = "eclipse.cache")
public interface EclipseCacheConfig {
@WithDefault("900")
long ttlMaxSeconds();
@WithDefault("")
Optional<List<Class<?>>> cacheBypassClasses();
CacheResource resource();
public interface CacheResource {
@WithDefault("true")
boolean enabled();
}
}
Loading