
com.fluxtion.server.plugin.cache.Cache Maven / Gradle / Ivy
/*
* SPDX-FileCopyrightText: © 2025 Gregory Higgins
* SPDX-License-Identifier: AGPL-3.0-only
*/
package com.fluxtion.server.plugin.cache;
import java.util.Collection;
public interface Cache {
Collection keys();
void put(String key, Object value);
T get(String key);
default T getOrDefault(String key, T defaultValue) {
T value = get(key);
return value == null ? defaultValue : value;
}
void remove(String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy