ResumableCache

A cache for storing resumable upload urls

Inheritors

Functions

Link copied to clipboard
abstract suspend fun clear()

Clears the cache

Link copied to clipboard
abstract suspend fun entries(): List<CachePair>

Returns all entries in the cache

Link copied to clipboard
abstract suspend fun get(fingerprint: Fingerprint): ResumableCacheEntry?

Returns the resumable cache entry for the fingerprint or null if no url was stored

Link copied to clipboard
abstract suspend fun remove(fingerprint: Fingerprint)

Removes the entry for the fingerprint

Link copied to clipboard
abstract suspend fun set(fingerprint: Fingerprint, entry: ResumableCacheEntry)

Stores the entry for the fingerprint. The fingerprint consists of the bucket id, the file path and the file size