Class DiskCacheAdapter
- java.lang.Object
-
- com.bumptech.glide.load.engine.cache.DiskCacheAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDiskCacheAdapter.FactoryDefault factory forDiskCacheAdapter.-
Nested classes/interfaces inherited from interface com.bumptech.glide.load.engine.cache.DiskCache
DiskCache.Writer
-
-
Constructor Summary
Constructors Constructor Description DiskCacheAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear the cache.voiddelete(Key key)Remove the key and value from the cache.java.io.Fileget(Key key)Get the cache for the value at the given key.voidput(Key key, DiskCache.Writer writer)Write to a key in the cache.
-
-
-
Method Detail
-
get
public java.io.File get(Key key)
Description copied from interface:DiskCacheGet the cache for the value at the given key.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.
-
put
public void put(Key key, DiskCache.Writer writer)
Description copied from interface:DiskCacheWrite to a key in the cache.DiskCache.Writeris used so that the cache implementation can perform actions after the write finishes, like commit (via atomic file rename).
-
delete
public void delete(Key key)
Description copied from interface:DiskCacheRemove the key and value from the cache.
-
-