Overview
PrismStorage provides a single protocol for all persistence needs. Every engine conforms to the same interface, making stores interchangeable and composable.Unified Protocol
PrismAsyncStorageProtocol — same methods with async throws.
Architecture
Quick Start
Concurrency
All stores areSendable. Actor-based stores (PrismDiskStore, PrismMemoryStore, PrismModelStore) provide safe concurrent access. Sync stores use NSLock internally.
Next Steps
Defaults & Disk
UserDefaults and file-based persistence.
SwiftData
Type-safe persistence with
@Model and PrismModelStore.Encryption & Compression
AES-GCM encryption and LZFSE/LZMA compression wrappers.
Advanced
Composite stores, batch operations, migrations, observation.