Class PhpReadCacheImpl

java.lang.Object
org.sonar.php.cache.PhpReadCacheImpl
All Implemented Interfaces:
PhpReadCache

public class PhpReadCacheImpl extends Object implements PhpReadCache
  • Constructor Details

    • PhpReadCacheImpl

      public PhpReadCacheImpl(org.sonar.api.batch.sensor.cache.ReadCache readCache)
  • Method Details

    • readBytes

      @CheckForNull public byte[] readBytes(String key)
      Specified by:
      readBytes in interface PhpReadCache
      Returns:
      the array of bytes stored for the given key, if any. null otherwise.
    • read

      public InputStream read(String key)
      Description copied from interface: PhpReadCache
      Returns an input stream for the data cached with the provided key. It is the responsibility of the caller to close the stream.
      Specified by:
      read in interface PhpReadCache
    • contains

      public boolean contains(String key)
      Description copied from interface: PhpReadCache
      Checks whether the cache contains the provided key.
      Specified by:
      contains in interface PhpReadCache