Class DiskCacheAdapter
java.lang.Object
com.bumptech.glide.load.engine.cache.DiskCacheAdapter
- All Implemented Interfaces:
DiskCache
A simple class that returns null for all gets and ignores all writes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.bumptech.glide.load.engine.cache.DiskCache
DiskCache.Writer -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DiskCacheAdapter
public DiskCacheAdapter()
-
-
Method Details
-
get
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
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
Description copied from interface:DiskCacheRemove the key and value from the cache. -
clear
public void clear()Description copied from interface:DiskCacheClear the cache.
-