Skip to content
Eric edited this page Feb 17, 2023 · 10 revisions

Cache is a static class that acts as a central database of preloaded items, expect sounds. Sounds have their own cache in Audio.

Methods

Cache can only store html, json, ose, oml and sound files. Preloaded images are not stored once loaded as it relies then on the browser's cache (preloaded images are rendered in the background then removed).

  OGX.Cache.read(_TYPE_OR_EXT_, _ID_);
  OGX.Cache.get(_QUERY_, _LIMIT_);
  OGX.Cache.set(_ARRAY_);
  OGX.Cache.add(_OBJECT_OR_ARRAY_); 
  OGX.Cache.remove(_TYPE_OR_EXT_, _ID_); 

Clone this wiki locally