DITDBConfig
@interface DITDBConfig : NSObject
Configuration for the database backend that DittoKit uses.
-
The maximum size of the database.
Declaration
Objective-C
@property (nonatomic, readonly) size_t mapSize;
-
Initializes a
DBConfig
object that can be passed to theDittoStore
initializer.The default mapsize is 200MB.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializes a
DITDBConfig
object that can be passed to theDITDittoKit
initializer.Declaration
Objective-C
- (nonnull instancetype)initWithMapSize:(size_t)mapSize;
Parameters
mapSize
The size of the memory map to use. The size should be a multiple of the OS page size. The default is 200 * 1048576 bytes (200MB). The size of the memory map is also the maximum size of the database.