public interface Cache
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Cache.StreamProvider
Interface used by the file caching system.
|
static interface |
Cache.TwoStreamProvider
Interface used by the file caching system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cache(String bucket,
String key,
OutputStream out,
Cache.StreamProvider provider)
Stream the contents identified by the key to the destination stream.
|
void |
cacheTwo(String bucket,
String key,
OutputStream out1,
OutputStream out2,
Cache.TwoStreamProvider provider)
Stream two contents identified by the key to the destination stream.
|
void |
clear()
Remove all entries in the cache.
|
void cache(String bucket, String key, OutputStream out, Cache.StreamProvider provider)
bucket - bucket to group keyskey - can not be nullout - where to write the cached item toprovider - provides the underlying item on a cache-missvoid cacheTwo(String bucket, String key, OutputStream out1, OutputStream out2, Cache.TwoStreamProvider provider)
bucket - bucket to group keyskey - can not be nullout1 - where to write the first cached item toout2 - where to write the second cached item toprovider - provides the underlying item on a cache-missvoid clear()
Copyright © 2019 Atlassian. All rights reserved.