Caching using an ES3File

Caching a file with an ES3File can significantly improve performance. The benefits of doing this are:

  • Accessing keys is much faster.
  • Overwriting keys is much faster and requires much less memory.
  • Only requires a single write to storage.

The file will be stored in memory, but in most cases the memory usage is negligible.

To use an ES3File:

C#

A complete example of script which uses an ES3File as a cache

JS

A complete example of script which uses an ES3File as a cache