use of org.ff4j.services.exceptions.FeatureStoreNotCached in project ff4j by ff4j.
the class FeatureStoreServices method clearCachedFeatureStore.
public void clearCachedFeatureStore() {
// Fixing #218 : If audit is enabled, cannot clear cache.
FF4jCacheProxy cacheProxy = ff4j.getCacheProxy();
if (cacheProxy == null) {
throw new FeatureStoreNotCached();
}
cacheProxy.getCacheManager().clearFeatures();
}
Aggregations