All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fluxtion.server.plugin.cache.Cache Maven / Gradle / Ivy

There is a newer version: 0.1.44
Show newest version
/*
 * 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