Package org.sonar.php.cache
Class CacheContextImpl
java.lang.Object
org.sonar.php.cache.CacheContextImpl
- All Implemented Interfaces:
CacheContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.sonar.api.utils.Version -
Constructor Summary
ConstructorsConstructorDescriptionCacheContextImpl(boolean isCacheEnabled, PhpWriteCache writeCache, PhpReadCache readCache, String pluginVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetImplementationVersion(Class<?> cls) booleanstatic CacheContextImplof(org.sonar.api.batch.sensor.SensorContext context)
-
Field Details
-
MINIMUM_RUNTIME_VERSION
public static final org.sonar.api.utils.Version MINIMUM_RUNTIME_VERSION
-
-
Constructor Details
-
CacheContextImpl
public CacheContextImpl(boolean isCacheEnabled, @Nullable PhpWriteCache writeCache, @Nullable PhpReadCache readCache, String pluginVersion)
-
-
Method Details
-
of
-
isCacheEnabled
public boolean isCacheEnabled()- Specified by:
isCacheEnabledin interfaceCacheContext
-
getReadCache
- Specified by:
getReadCachein interfaceCacheContext
-
getWriteCache
- Specified by:
getWriteCachein interfaceCacheContext
-
pluginVersion
- Specified by:
pluginVersionin interfaceCacheContext
-
getImplementationVersion
-