Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/signpostmarv/localforage-silo
Wrapper to localForage for storing content in self-contained silo
https://github.com/signpostmarv/localforage-silo
Last synced: about 1 month ago
JSON representation
Wrapper to localForage for storing content in self-contained silo
- Host: GitHub
- URL: https://github.com/signpostmarv/localforage-silo
- Owner: SignpostMarv
- License: other
- Created: 2015-06-20T19:11:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-21T00:15:08.000Z (over 9 years ago)
- Last Synced: 2024-10-10T13:26:30.578Z (2 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Wrapper to [localForage](https://github.com/mozilla/localForage) for storing
content in self-contained silo# Example
```javascript
require([
'Silo.js',
'localforage'
], function(
Silo,
localforage
){
var
silo = new Silo('foo')
;
silo.setItem('bar', 'baz');
localforage.setItem('bar', 'baz');
silo.keys().then(function(keys){
console.log(keys); // will give ["bar"]
});
localforage.keys().then(function(keys){
console.log(keys); // will give ["bar", "foo::bar"]
});
silo.removeItem('bar');
localforage.keys().then(function(keys){
console.log(keys); // will give ["bar"]
});
})
```# License
This program is free software; it is distributed under an [Apache License](
https://github.com/SignpostMarv/localForage-Silo/blob/master/LICENSE
).