DiskLruCacheWrapper

open class DiskLruCacheWrapper : DiskCache

The default DiskCache implementation. There must be no more than one active instance for a given directory at a time.

See also

Functions

Link copied to clipboard
open fun clear()
Clear the cache.
Link copied to clipboard
open fun create(directory: File, maxSize: Long): DiskCache
Create a new DiskCache in the given directory with a specified max size.
Link copied to clipboard
open fun delete(key: Key)
Remove the key and value from the cache.
Link copied to clipboard
open fun get(key: Key): File
Get the cache for the value at the given key.
open fun get(directory: File, maxSize: Long): DiskCache
Get a DiskCache in the given directory and size.
Link copied to clipboard
open fun put(key: Key, writer: DiskCache.Writer)
Write to a key in the cache.