open
open fun open( directory: File, appVersion: Int, valueCount: Int, maxSize: Long): DiskLruCache
Content copied to clipboard
Opens the cache in directory
, creating a cache if none exists there.
Parameters
directory
a writable directory
valueCount
the number of values per cache entry. Must be positive.
maxSize
the maximum number of bytes this cache should use to store
Throws
if reading or writing the cache directory fails