JSPM

@rnd7/rum-temporary-storage

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q68604F
  • License MIT

Rumbullion Temporary Storage

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:

rum

rum-storage

Download

builds

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').TemporaryStorage

Using 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 install

Build

Production build

npm run build

Test

Run Tests

npm test

License

See the LICENSE file for software license rights and limitations (MIT).