限定符和类型 | 类和说明 |
---|---|
static class |
DiskCacheAdapter.Factory
Default factory for
DiskCacheAdapter . |
DiskCache.Writer
构造器和说明 |
---|
DiskCacheAdapter() |
public File get(Key key)
DiskCache
Note - This is potentially dangerous, someone may write a new value to the file at any point in time and we won't know about it.
public void put(Key key, DiskCache.Writer writer)
DiskCache
DiskCache.Writer
is used so that the cache implementation can
perform actions after the write finishes, like commit (via atomic file rename).