Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
service:jsondb [2022/11/28 18:06] – Changed section formatting for table of contents; added a Best Practices section Nightfox | service:jsondb [2022/11/28 18:08] – [Best Practices] Updated the lock/unlock example Nightfox | ||
---|---|---|---|
Line 62: | Line 62: | ||
var JSON_DB_LOCK_WRITE = 2; | var JSON_DB_LOCK_WRITE = 2; | ||
var jsonClient = new JSONClient(" | var jsonClient = new JSONClient(" | ||
- | jsonClient.lock(" | + | jsonClient.lock(" |
- | var scoresData = jsonClient.read(" | + | var scoresData = jsonClient.read(" |
// Change scoresData ... | // Change scoresData ... | ||
- | jsonClient.write(" | + | jsonClient.write(" |
- | jsonClient.unlock(" | + | jsonClient.unlock(" |
| | ||