DiskLruHttpCache

class DiskLruHttpCache(fileSystem: FileSystem, directory: File, maxSize: Long) : ApolloHttpCache

Constructors

Link copied to clipboard
constructor(fileSystem: FileSystem, directory: File, maxSize: Long)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun clearAll()
Link copied to clipboard
open override fun read(cacheKey: String): HttpResponse
Link copied to clipboard
open override fun remove(cacheKey: String)
Link copied to clipboard
open override fun write(response: HttpResponse, cacheKey: String): HttpResponse

Store the response with the given cacheKey into the cache. A new HttpResponse is returned whose body, when read, will write the contents to the cache. The response's body is not consumed nor closed.