DiskCacheAdapter

open class DiskCacheAdapter : DiskCache

A simple class that returns null for all gets and ignores all writes.

Types

Link copied to clipboard
class Factory : DiskCache.Factory
Default factory for DiskCacheAdapter.

Functions

Link copied to clipboard
open fun clear()
Clear the cache.
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.
Link copied to clipboard
open fun put(key: Key, writer: DiskCache.Writer)
Write to a key in the cache.