Package org.sonar.python.caching
Class PythonWriteCacheImpl
- java.lang.Object
-
- org.sonar.python.caching.PythonWriteCacheImpl
-
- All Implemented Interfaces:
PythonWriteCache
public class PythonWriteCacheImpl extends Object implements PythonWriteCache
-
-
Constructor Summary
Constructors Constructor Description PythonWriteCacheImpl(org.sonar.api.batch.sensor.cache.WriteCache writeCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFromPrevious(String key)Copy a cached entry from the previous cache to the new one.voidwrite(String key, byte[] data)Save a new entry in the cache.
-
-
-
Method Detail
-
write
public void write(String key, byte[] data)
Description copied from interface:PythonWriteCacheSave a new entry in the cache.- Specified by:
writein interfacePythonWriteCache
-
copyFromPrevious
public void copyFromPrevious(String key)
Description copied from interface:PythonWriteCacheCopy a cached entry from the previous cache to the new one.- Specified by:
copyFromPreviousin interfacePythonWriteCache
-
-