InMemoryStore
public final class InMemoryStore : StorageInterface
extension InMemoryStore: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
A storage interface that is backed only in memory.
-
Initializes an
InMemoryStorefor the specified configurationDeclaration
Swift
public init(configuration: ModelConfiguration)Parameters
configurationan optional configuration name from the model file. If not specified, defaults to
nil, the “Default” configuration. -
Initializes an
InMemoryStorewith the “Default” configurationDeclaration
Swift
public init()
-
The string identifier for the
NSPersistentStore‘stypeproperty. ForInMemoryStores, this is always set toNSInMemoryStoreType.Declaration
Swift
public static let storeType: String -
The configuration name in the model file
Declaration
Swift
public let configuration: ModelConfiguration -
The options dictionary for the
NSPersistentStore. ForInMemoryStores, this is always set tonil.Declaration
Swift
public let storeOptions: [AnyHashable : Any]?
-
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
InMemoryStore Class Reference