YapDatabaseConnectionFlushMemoryFlags
enum YapDatabaseConnectionFlushMemoryFlags {}
Specifies what YapDatabase should do when the OS broadcasts a low-memory warning to the app.
-
Flushes nothing from memory.
Declaration
Objective-C
YapDatabaseConnectionFlushMemoryFlags_None = 0
-
Flushes the caches (objectCache & metadataCache) from memory.
Declaration
Objective-C
YapDatabaseConnectionFlushMemoryFlags_Caches = 1 << 0
Swift
static var caches: YapDatabaseConnectionFlushMemoryFlags { get }
-
Flushes pre-complied SQL statements from memory.
Declaration
Objective-C
YapDatabaseConnectionFlushMemoryFlags_Statements = 1 << 1
Swift
static var statements: YapDatabaseConnectionFlushMemoryFlags { get }
-
Flushes internal caches from memory. This is primarily an instruction for extensions, telling them to flush whatever they can.
Declaration
Objective-C
YapDatabaseConnectionFlushMemoryFlags_Internal = 1 << 2
Swift
static var `internal`: YapDatabaseConnectionFlushMemoryFlags { get }
-
Flushes everything possible. (All of the other options combined.)
Declaration
Objective-C
YapDatabaseConnectionFlushMemoryFlags_All = (YapDatabaseConnectionFlushMemoryFlags_Caches | YapDatabaseConnectionFlushMemoryFlags_Statements | YapDatabaseConnectionFlushMemoryFlags_Internal)
Swift
static var all: YapDatabaseConnectionFlushMemoryFlags { get }