Interface PythonReadCache
-
- All Known Implementing Classes:
DummyCache,PythonReadCacheImpl
@Beta public interface PythonReadCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(String key)Checks whether the cache contains the providedkey.InputStreamread(String key)Returns an input stream for the data cached with the providedkey.byte[]readBytes(String key)
-
-
-
Method Detail
-
read
InputStream read(String key)
Returns an input stream for the data cached with the providedkey. It is the responsibility of the caller to close the stream.
-
readBytes
@CheckForNull byte[] readBytes(String key)
- Returns:
- the array of bytes stored for the given key, if any.
nullotherwise.
-
contains
boolean contains(String key)
Checks whether the cache contains the providedkey.
-
-