Basic client cache

Printer-friendly versionSend to friendPDF version
Intermediate

This sample code has been developed by Streamezzo.
Its purpose is to illustrate how to cache a scene on client.

Current scene is stored in client cache for 5 seconds (5000 milliseconds) and can be accessed instantaneously. Once this delay has expired it will be requested to server again.

" cacheable="true" clientCacheTtl="5s" permanent="false" /> =0) { DomApi.setTextString("counter", "Cache expires in "+currentCounter+"s."); } else { DomApi.setTextString("counter", "Cache expired."); DomApi.startNode("change_instructions"); DomApi.setNodeActive("save_counter", false); DomApi.setNodeActive("clean_counter", true); } } ]]> " wrap="true" horizAlign="CENTERED" vertAlign="MIDDLE" />
AttachmentSize
Basic_client_cache.swz3.55 KB
Share this