create

open fun create(directory: File, maxSize: Long): DiskCache

Create a new DiskCache in the given directory with a specified max size.

Return

The new disk cache with the given arguments

Parameters

directory

The directory for the disk cache

maxSize

The max size for the disk cache