Sticky, a simple, key/value pair, browser-storage cache leveraging the latest HTML5 storage API’s
Sticky is a simple, key/value pair, browser-storage cache leveraging the latest HTML5 storage API’s (indexedDB, webSQL, and localStorage).
Sticky persists to memory, indexedDB, webSQL, localStorage, globalStorage, and cookies.
Objects and arrays are stringified before storage and strings longer than 128 characters aren’t persisted to cookies.
Browser Support
- WebSQL (SQLite)
Chrome 4+, Opera 10.5+, Safari 3.1+, and Android Browser 2.1+ 5MB of data per DB, but can request more - IndexedDB
IE 10+, FireFox 4+, and Chrome 11+ - localStorage
Safari 4+, Mobile Safari (iPhone/iPad), Firefox 3.5+, Internet Explorer 8+ and Chrome 4+ 5MB of data per domain - globalStorage
FireFox 2-3 - Cookies
Usually 1-4KB per domain. Only strings that are less than 128 characters are persisted to cookies by Sticky.