Cache - globules-io/OGX.JS GitHub Wiki
Cache
is a static class that acts as a central database of preloaded items, except sounds. Sounds have their own cache in Audio.
Methods
Cache
can only store html, json, ose, oml 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_);