- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for DiskLruCache (0.22 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
synchronized(this@DiskLruCache) { detach() } } } } /** * Commits this edit so it is visible to readers. This releases the edit lock so another edit * may be started on the same key. */ @Throws(IOException::class) fun commit() { synchronized(this@DiskLruCache) { check(!done)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 34.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
assertThat(readJournalLines()).isEqualTo( listOf(DiskLruCache.MAGIC, DiskLruCache.VERSION_1, "100", "2", "") + expectedBodyLines, ) } private fun createJournal(vararg bodyLines: String) { createJournalWithHeader( DiskLruCache.MAGIC, DiskLruCache.VERSION_1, "100", "2", "", *bodyLines, ) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cache.kt
var editor: DiskLruCache.Editor? = null try { editor = snapshot.edit() ?: return // edit() returns null if snapshot is not current. entry.writeTo(editor) editor.commit() } catch (_: IOException) { abortQuietly(editor) } } private fun abortQuietly(editor: DiskLruCache.Editor?) { // Give up because the cache cannot be written.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 26.8K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
Lokhttp3/internal/cache/CacheStrategy; Lokhttp3/internal/cache/DiskLruCache$Editor; Lokhttp3/internal/cache/DiskLruCache$Entry; Lokhttp3/internal/cache/DiskLruCache$Snapshot; Lokhttp3/internal/cache/DiskLruCache$cleanupTask$1; Lokhttp3/internal/cache/DiskLruCache$fileSystem$1; Lokhttp3/internal/cache/DiskLruCache$newJournalWriter$faultHidingSink$1; Lokhttp3/internal/cache/DiskLruCache; Lokhttp3/internal/cache/FaultHidingSink;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Mar 21 11:22:00 UTC 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
-1 """.trimIndent() val entryBody = "abc" val journalBody = """libcore.io.DiskLruCache 1 201105 2 CLEAN $urlKey ${entryMetadata.length} ${entryBody.length} """ fileSystem.createDirectory(cache.directoryPath) writeFile(cache.directoryPath, "$urlKey.0", entryMetadata)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
bytes in would always yield deflated bytes out and this isn't always the case! * Fix: Reliably update and invalidate the disk cache on windows. As originally designed our internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that are currently being read or written. On Windows the file system forbids this so we must be more careful when deleting and renaming files.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0)