SqlNormalizedCacheFactory

Creates a new NormalizedCacheFactory that uses a persistent cache based on Sqlite

Parameters

name

: the name of the database or null for an in-memory database When not in memory, the database will be stored in a platform specific folder

  • on Android it will use Context.getDatabaseName

  • on MacOS, it will use "Application Support/databases/name"

  • on the JVM, it will use "System.getProperty("user.home")/.apollo" Default: "apollo.db"

Constructors

Link copied to clipboard
constructor(context: Context, name: String? = "apollo.db", factory: SupportSQLiteOpenHelper.Factory = FrameworkSQLiteOpenHelperFactory(), configure: (SupportSQLiteDatabase) -> Unit? = null, useNoBackupDirectory: Boolean = false, windowSizeBytes: Long? = null)
actual constructor(name: String?)
actual constructor(driver: SqlDriver)
constructor(name: String?, baseDir: String?)
constructor()
actual constructor(name: String?)
actual constructor(driver: SqlDriver)
expect constructor(name: String? = "apollo.db")
expect constructor(driver: SqlDriver)
constructor(name: String?, baseDir: String?)
constructor(url: String, properties: Properties = Properties())
actual constructor(name: String?)
actual constructor(driver: SqlDriver)

Functions

Link copied to clipboard
actual open override fun create(): NormalizedCache
actual open override fun create(): NormalizedCache
expect open override fun create(): NormalizedCache
actual open override fun create(): NormalizedCache
Link copied to clipboard