DiskCache

interface DiskCache

An interface for writing to and reading from a disk cache.

Types

Link copied to clipboard
interface Factory
An interface for lazily creating a disk cache.
Link copied to clipboard
interface Writer
An interface to actually write data to a key in the disk cache.

Functions

Link copied to clipboard
abstract fun clear()
Clear the cache.
Link copied to clipboard
abstract fun delete(key: Key)
Remove the key and value from the cache.
Link copied to clipboard
abstract fun get(key: Key): File
Get the cache for the value at the given key.
Link copied to clipboard
abstract fun put(key: Key, writer: DiskCache.Writer)
Write to a key in the cache.

Inheritors

Link copied to clipboard
Link copied to clipboard