ES3.StoreCachedFile
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
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. |
Examples
1 2 3 4 5 6 7 8 9 10 |
// 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(); |