DiskLruHttpCache
class DiskLruHttpCache( fileSystem: FileSystem, directory: File, maxSize: Long) : ApolloHttpCache
Content copied to clipboard
Constructors
Link copied to clipboard
fun DiskLruHttpCache( fileSystem: FileSystem, directory: File, maxSize: Long)
Content copied to clipboard
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun write(response: HttpResponse, cacheKey: String): HttpResponse
Content copied to clipboard
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.