Search in sources :

Example 1 with FeatureStoreNotCached

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();
}
Also used : FF4jCacheProxy(org.ff4j.cache.FF4jCacheProxy) FeatureStoreNotCached(org.ff4j.services.exceptions.FeatureStoreNotCached)

Aggregations

FF4jCacheProxy (org.ff4j.cache.FF4jCacheProxy)1 FeatureStoreNotCached (org.ff4j.services.exceptions.FeatureStoreNotCached)1