Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

feather-cache-indexeddb

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feather-cache-indexeddb

IndexedDB Driver For feather-cache Storage.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
990
increased by42.04%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc