| Package | Description |
|---|---|
| org.aoju.bus.http.cache |
| Modifier and Type | Method and Description |
|---|---|
DiskLruCache.Snapshot |
DiskLruCache.get(String key)
返回名为
key的条目的快照,如果条目不存在,则返回null,
否则当前无法读取。如果返回一个值,它将被移动到LRU队列的头部 |
| Modifier and Type | Method and Description |
|---|---|
Iterator<DiskLruCache.Snapshot> |
DiskLruCache.snapshots()
返回缓存当前项的迭代器。这个迭代器不会抛出
ConcurrentModificationException,
调用者必须close()每个由Iterator.next()返回的快照
如果做不到这一点,就会泄漏打开的文件,返回的迭代器支持 Iterator.remove(). |
Copyright © 2019. All rights reserved.