Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for DiskLruCache (0.05 sec)

  1. okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top