put

abstract fun put(url: String, data: ByteArray): AdResult<Unit>

Put file as data ByteArray in cache via URL.

Return

The AdResult with Unit as the success result type, or an AdError if an error occurred.

Parameters

url

URL of the file whose MD5 hash will be used as the key.

data

The data of the file.