ES3.StoreCachedFile
public static void StoreCachedFile(string filePath, ES3Settings settings)
Description
Stores a file in the cache as a local file. This enables you to save multiple keys to a file and store it using a single write, eliminating the overhead of random access.
For more information see the Improving Performance guide.
Parameters
[table th=”0″]filePath,”[Optional] The relative or absolute path of the file we want to store.”
settings,”[Optional] The settings we want to use to override the default settings.”[/table]
Examples
// Create an ES3Settings to store to the cache.
var settings = new ES3Settings(ES3.Location.Cache);
// Write multiple keys to the default file in cache.
ES3.Save("myTransform", this.transform, settings);
ES3.Save("myInt", myInt, settings);
ES3.Save("myV3", myV3, settings);
// Store the cached default file to a local file.
ES3.StoreCachedFile();