Storage
Core storage abstraction for the memory system that provides a unified interface for file operations across different platforms and storage backends.
Key features:
Platform-independent path handling
Basic file operations (read, write, exists)
Directory management
Null safety for missing files
Usage example:
val storage: Storage<Path> = SimpleStorage(fileSystem)
// or
val storage: Storage<Path> = EncryptedStorage(fileSystem, encryption)
// Write data
storage.write(path, "Important data")
// Read data
val data = storage.read(path)
Content copied to clipboard
Parameters
Path
Platform-specific path type (e.g., java.nio.file.Path for JVM)