INNER CODE UNIT · Kotlin

EXPIRATION_TIME

bufferapp/android-clean-architecture-boilerplate · cache/src/main/java/org/buffer/android/boilerplate/cache/BufferooCacheImpl.kt:27

    private val EXPIRATION_TIME = (60 * 10 * 1000).toLong()

    private var database: SQLiteDatabase = dbOpenHelper.writableDatabase

    /**
     * Retrieve an instance from the database, used for tests
     */
    internal fun getDatabase(): SQLiteDatabase {
        return database
    }

    /**
     * Remove all the data from all the tables in the database.
     */
    override fun clearBufferoos(): Completable {
        return Completable.defer {
            database.beginTransaction()
            try {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…