SyncStorage (Plugins)

Discuss Scirra's 2D Asset Store

Post » Thu Aug 24, 2017 9:16 am



SyncStorage — Now for sale in the Scirra Store!
https://www.scirra.com/store/construct2-plugins/syncstorage-3800

What you buy here?

  • SyncStorage plugin for C2 (c2addon) and C3 (c3addon)
  • Save to LocalStorage example capx
  • Save to file example capx (export with NW.js for testing)

What is SyncStorage?

SyncStorage is memory storage which acts as a bridge for various databases like local storage, files or external DBs. In other words it's a substitute for LocalStorage plugin with additional features like data encoding and exporting data.

And most importantly it makes using any storage much more comfortable.

Features / Why should I use SyncStorage instead of LocalStorage?

  • SyncStorage operates on data directly in the memory (fastest possible storage),
  • Unlike LocalStorage, SyncStorage is synchronous (get/set/compare functions work instantly),
  • Built-in data encoding feature (configurable),
  • Can save data to local storage or export as JSON (or encoded string) to be then saved to file or any external DB,
  • When using SyncStorage to save data to LocalStorage, it uses the official LocalStorage plugin's JS library (SyncStorage will always remain compatible with local storage even after LocalStorage library update/change),
  • Has user friendly ACEs, can easily compare two items from the storage, etc.

Dependency

  • When working in LocalStorage mode, simply add official LocalStorage plugin to the project to load the LS JS library (see example capx).
  • When working in custom mode (save to file for instance) there is no dependency.


Use this topic to leave comments, ask questions and talk about SyncStorage
ImageImageImage
B
46
S
23
G
89
Posts: 1,106
Reputation: 50,658

Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 0 guests