docs/javadoc/reference/com/facebook/imagepipeline/cache/BufferedDiskCache.html
|
|
CountingMemoryCache<K, V>
MemoryCache<K, V>
Summary: Ctors | Methods | Inherited Methods | [Expand All]
public class
extends Object
| java.lang.Object | | ↳ | com.facebook.imagepipeline.cache.BufferedDiskCache |
BufferedDiskCache provides get and put operations to take care of scheduling disk-cache read/writes.
| Public Constructors |
|---|
| Public Methods |
|---|
| void |
| Task<Void> |
| Clears the disk cache and the staging area. |
| Task<Boolean> |
| Performs a key-value look up in the disk cache. |
| boolean |
| Returns true if the key is in the in-memory key index. |
| boolean |
| Performs disk cache check synchronously. |
| Task<EncodedImage> |
| Performs key-value look up in disk cache. |
| long |
| Task<Void> |
| Performs key-value look up in disk cache. |
| void |
| Associates encodedImage with given key in disk cache. |
| Task<Void> |
| Removes the item from the disk cache and the staging area. |
| [Expand] Inherited Methods | | --- | | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
|
Clears the disk cache and the staging area.
Performs a key-value look up in the disk cache. If no value is found in the staging area, then disk cache checks are scheduled on a background thread. Any error manifests itself as a cache miss, i.e. the returned Task resolves to false.
Returns true if the key is in the in-memory key index.
Not guaranteed to be correct. The cache may yet have this key even if this returns false. But if it returns true, it definitely has it.
Avoids a disk read.
Performs disk cache check synchronously.
Performs key-value look up in disk cache. If value is not found in disk cache staging area then disk cache read is scheduled on background thread. Any error manifests itself as cache miss, i.e. the returned task resolves to null.
Performs key-value look up in disk cache. If value is not found in disk cache staging area then disk cache probing is scheduled on background thread.
Associates encodedImage with given key in disk cache. Disk write is performed on background thread, so the caller of this method is not blocked
Removes the item from the disk cache and the staging area.
+Generated by Doclava. +