write
Writes the passed data to the cache along the passed AssetPath.
Return
The full local path to the file or error.
Parameters
path
The name of the resource, and, optionally, the name of the subdirectory to store the resource.
data
The data to be cached.