Class PassThroughCache
java.lang.Object
com.atlassian.plugin.cache.filecache.impl.PassThroughCache
- All Implemented Interfaces:
Cache
Always streams each resource from the given input
- Since:
- v2.13
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.plugin.cache.filecache.Cache
Cache.StreamProvider, Cache.TwoStreamProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancache(String bucket, String key, OutputStream out, Cache.StreamProvider provider) Stream the contents identified by the key to the destination stream.booleancacheTwo(String bucket, String key, OutputStream out1, OutputStream out2, Cache.TwoStreamProvider provider) Stream two contents identified by the key to the destination stream.voidclear()Remove all entries in the cache.
-
Constructor Details
-
PassThroughCache
public PassThroughCache()
-
-
Method Details
-
cache
Description copied from interface:CacheStream the contents identified by the key to the destination stream. Should the contents not exist in the cache a new entry should be created if the implementation is a caching implementation. -
cacheTwo
public boolean cacheTwo(String bucket, String key, OutputStream out1, OutputStream out2, Cache.TwoStreamProvider provider) Description copied from interface:CacheStream two contents identified by the key to the destination stream. Should the contents not exist in the cache a new entry should be created if the implementation is a caching implementation. -
clear
public void clear()Description copied from interface:CacheRemove all entries in the cache.
-