ModelCacheEntry

data class ModelCacheEntry(val fileName: String, val path: String, val sizeBytes: Long, val lastAccessMillis: Long, val pinned: Boolean)(source)

One model file in a ModelCache.

Constructors

Link copied to clipboard
constructor(fileName: String, path: String, sizeBytes: Long, lastAccessMillis: Long, pinned: Boolean)

Properties

Link copied to clipboard

the file name inside ModelCache.directory.

Link copied to clipboard

last ModelCache.touch (or the file's modification time if never touched).

Link copied to clipboard

the full path of the file.

Link copied to clipboard

whether the file is pinned (in use) and therefore never evicted.

Link copied to clipboard

the file size in bytes.