docs/javadoc/reference/com/facebook/cache/disk/FileCache.html
|
|
Summary: Methods | Inherited Methods | [Expand All]
public interface
implements DiskTrimmable
| com.facebook.cache.disk.FileCache |
| Known Indirect Subclasses
| DiskStorageCache | Cache that manages disk storage. |
|
Interface that caches based on disk should implement.
| Public Methods |
|---|
| abstract void |
| abstract long |
| Deletes old cache files. |
| abstract long |
| abstract DiskStorage.DiskDumpInfo |
| abstract BinaryResource |
| Returns the binary resource cached with key. |
| abstract long |
| abstract boolean |
| abstract boolean |
| Returns true if the key is in the in-memory key index. |
| abstract BinaryResource |
| Inserts resource into file with key |
| abstract boolean |
| Tells if this cache is enabled. |
| abstract boolean |
| abstract void |
| Removes a resource by key from cache. |
| [Expand] Inherited Methods | | --- | | From interface com.facebook.common.disk.DiskTrimmable
| abstract void | trimToMinimum() Called when there is very little disk space left. | | abstract void | trimToNothing() Called when there is almost no disk space left and the app is likely to crash soon |
|
Deletes old cache files.
| cacheExpirationMs | files older than this will be deleted. |
| IOException | |
Returns the binary resource cached with key.
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.
Inserts resource into file with key
| key | cache key | | writer | Callback that writes to an output stream |
| IOException | |
Tells if this cache is enabled. It's important for some caches that can be disabled without further notice (like in removable/unmountable storage). Anyway a disabled cache should just ignore calls, not fail.
Removes a resource by key from cache.
| key | cache key |
+Generated by Doclava. +