Ninety-nine Pitchers of Malt

    feather-cache-indexeddb
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    feather-cache-indexeddb

    IndexedDB Driver For feather-cache Storage.

    npm Travis styled with prettier Built with generator-ts-np

    What

    This module requires IndexedDB supported environments (like Browser) to run properly.

    This module enables feather-cache storage to work with IndexedDB.

    Install

    With npm

    npm i --save feather-cache-indexeddb

    With yarn

    yarn add feather-cache-indexeddb

    You don't have to install type definitions for typescript. It's built in.

    Usage

    idbFeatherCacheDriver(maxAgeInMs);

    Default maxAgeInMs (number) is 5 min.

    import { FeatherCache } from 'feather-cache';
    import { idbFeatherCacheDriver } from 'feather-cache-indexeddb';
    // or
    const { FeatherCache } = require('feather-cache');
    const { idbFeatherCacheDriver } = require('feather-cache-indexeddb');
     
    // init
    const storage = new FeatherCache(idbFeatherCacheDriver(60 * 1000 * 5));

    Version of ts-np-generator used: used version of ts-np generator

    Licence

    MIT © Vajahath Ahmed

    Install

    npm i feather-cache-indexeddb

    DownloadsWeekly Downloads

    124

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    166 kB

    Total Files

    6

    Last publish

    Collaborators

    • vaju