
com.configcat.ConfigCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configcat-java-client Show documentation
Show all versions of configcat-java-client Show documentation
Java SDK for ConfigCat, a feature flag, feature toggle, and configuration management service. That lets you launch new features and change your software configuration remotely without actually (re)deploying code. ConfigCat even helps you do controlled roll-outs like canary releases and blue-green deployments.
The newest version!
package com.configcat;
/**
* A cache API used to make custom cache implementations for {@link ConfigCatClient}.
*/
public abstract class ConfigCache {
/**
* Child classes has to implement this method, the {@link ConfigCatClient}
* uses it to get the actual value from the cache.
*
* @param key the key of the cache entry.
* @return the cached configuration.
* @throws Exception if unable to read the cache.
*/
protected abstract String read(String key) throws Exception;
/**
* * Child classes has to implement this method, the {@link ConfigCatClient}
* uses it to set the actual cached value.
*
* @param key the key of the cache entry.
* @param value the new value to cache.
* @throws Exception if unable to save the value.
*/
protected abstract void write(String key, String value) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy