CompressedFileSaver

fun CompressedFileSaver(path: String, recover: suspend (Exception) -> String? = ThrowRecover): Saver<String>

A DefaultFileSaver implementation that saves a compressed String state to the file system. Usually used as a decorator for JsonSaver

This saver is only available on JVM and Android for now, and therefore will be identical to FileSaver on other platforms. (will not compress the file)

See the overload for more details.

See also

fun CompressedFileSaver(dir: String, fileName: String, recover: suspend (Exception) -> String? = ThrowRecover): Saver<String>

A DefaultFileSaver implementation that saves a compressed String state to the file system. Usually used as a decorator for JsonSaver

This saver is only available on JVM and Android for now, and therefore will be identical to FileSaver on other platforms. (will not compress the file)

See the overload for more details.

See also