#CS Forage Expire
Service that wraps localForage to allow storing items with an expiration Requires: localForage, moment.js
ForageExpire.setItem('someData', 'I want to expire this in 1 day', moment().add(1, 'days))
ForageExpire.getItem('someData', function(data){ console.log(data); })
There is currently an issue running localforage through Karma. There is communication with Mozilla on resolving this issue. Tests will be written when that issue has been resolved.
npm install
bower install
npm install -g uglify
"cs-forage-expire": "[email protected]:cloudspace/forage-expire.git#master",
Include the following in your html
<script src='./<my_base_path>/bower_components/dist/cs-forage-expire.min.js'></script>
uglifyjs ./lib/cs-forage-expire.js ./lib/cs-forage-expire-factory.js -o ./dist/cs-forage-expire.min.js
TBD
TBD