DiskCache.Factory, DiskCache.Writer
Constructor and Description |
---|
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 timeand 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).public void delete(Key key)
DiskCache