EncryptedDataStoreStorageFactory
A singleton factory for managing multiple DataStoreStorage instances. Each Storage is identified by a unique filename.
Functions
Link copied to clipboard
inline fun <T : @Serializable Any> getOrCreate(block: EncryptedDataStoreStorageConfig.() -> Unit): Storage<T>
Creates and caches a DataStore instance for the given filename. If a DataStore with the same filename already exists in the cache, returns the existing instance. The store will not be recreated if provided with different configuration attributes on the provided EncryptedDataStoreStorageConfig.