Package Exports
- @rnd7/rum-temporary-storage
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rnd7/rum-temporary-storage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rumbullion Temporary Storage
Temporary Storage Class used within the Rumbullion toolkit.
See also:
Download
Installation
npm i @rnd7/rum-temporary-storage
Include
Via script tag
<script src="node_modules/@rnd7/rum-temporary-storage/dist/rum-storage-browser.js"></script>Using require
const TemporaryStorage = require('@rnd7/rum-temporary-storage').TemporaryStorageUsing import
import { TemporaryStorage } from '@rnd7/rum-temporary-storage'Usage
let myStorage = new TemporaryStorage()
let sid = 'someStorageId'
myStorage.insert({sid, myProperty: "myValue"}).then(console.log)API
Constructor
Pass optional configuration data as opts parameter assigned directly to the instance.
new TemporaryStorage(opts)TemporaryStorage Defaults:
{
scheduler: true,
ttl: 1000*60*60*24,
minWipeInterval: 1000*60,
touchOnFind: true,
touchOnList: true
}You might also pass all Storage options.
Inherited from Storage
TemporaryStorage extends Storage.
insert(record)
list()
find(recordOrIndex)
update(record)
upsert(recordOrIndex)
replace(record)
remove(recordOrIndex)Development
Installation
Install dependencies such as rum-maker and rum-tester
npm installBuild
Production build
npm run buildTest
Run Tests
npm testLicense
See the LICENSE file for software license rights and limitations (MIT).