1.1.0 • Published 9 years ago

lockable-storage v1.1.0

Weekly downloads
17
License
Copyright (c) 201...
Repository
github
Last release
9 years ago

HTML5 Lockable Storage

Manage concurrency between browser tabs running independent processes by (a)synchronizing the localStorage resource.

This is the implementation by Benjamin Dumke-von der Ehe as posted in his 2012 article JavaScript concurrency and locking the HTML5 localStorage.

Install

bower install lockablestorage

or

  npm install lockable-storage

Usage

LockableStorage.lock('key', function () {
    // exclusive access to localStorage['key']
});