SqlNormalizedCacheFactory

class SqlNormalizedCacheFactory(name: String?)

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

class SqlNormalizedCacheFactory(name: String?) : NormalizedCacheFactory

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"

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

SqlNormalizedCacheFactory
Link copied to clipboard
fun SqlNormalizedCacheFactory(url: String, properties: Properties = Properties())
SqlNormalizedCacheFactory
Link copied to clipboard
fun SqlNormalizedCacheFactory(name: String?, baseDir: String?)
SqlNormalizedCacheFactory
Link copied to clipboard
fun SqlNormalizedCacheFactory(name: String? = "apollo.db")
: 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"

fun SqlNormalizedCacheFactory(name: String? = "apollo.db")

Functions

chain
Link copied to clipboard
fun chain(factory: NormalizedCacheFactory): NormalizedCacheFactory
create
Link copied to clipboard
open override fun create(): SqlNormalizedCache
createChain
Link copied to clipboard
fun createChain(): NormalizedCache