FileStorage
fun FileStorage(directory: Path, fileSystem: FileSystem = SystemFileSystem, dispatcher: CoroutineDispatcher = ioDispatcher()): CacheStorage(source)
Creates storage that uses file system to store cache data.
Parameters
directory
directory to store cache data.
fileSystem
file system to use for file operations.
dispatcher
dispatcher to use for file operations.
fun FileStorage(directory: File, dispatcher: CoroutineDispatcher = Dispatchers.IO): CacheStorage(source)
Deprecated
Use the version from the common package using kotlinx.io
Creates storage that uses file system to store cache data.
Parameters
directory
directory to store cache data.
dispatcher
dispatcher to use for file operations.