public class GlobalCacheActivationResolver extends Object implements ICacheActivationResolver
Constructor and Description |
---|
GlobalCacheActivationResolver(boolean enabled) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCacheEnabled(String feature)
Tells if cache is enabled for a specific feature.
|
boolean |
isCacheGlobalyEnabled()
Tells if cache is globally enabled by default, i.e. if at least one addon can use cache.
|
public GlobalCacheActivationResolver(boolean enabled)
public boolean isCacheEnabled(String feature)
ICacheActivationResolver
isCacheEnabled
in interface ICacheActivationResolver
feature
- Feature for which to check cache activation.public boolean isCacheGlobalyEnabled()
ICacheActivationResolver
isCacheGlobalyEnabled
in interface ICacheActivationResolver