New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

rsvp-cache

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsvp-cache

Simple local caching library built on top of RSVP promises. This library has no dependency other than rsvp.js

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

RSVP Cache

Overview

RSVP Cache is a lightweight library that provides an access to various caching mechanisms using rsvp Promises.

Simple Usage Sample

var cache = require('rsvp-cache');

var simpleCache = new cache.SimpleObjectCache();
simpleCache.setValue('key, value');

var promise = simpleCache.getValue('key', function () {
  // load function - lengthy calculation/loading process...
  heavyLoadPromise = ajax.request('POST', '/make/lots/calculations');
  return heavyLoadPromise;
});

promise.then(function (data) {
  console.log(data); // prints 'value' as it was cached on the line with setValue above
});

Including in your package.json:

  "devDependencies": {
...
    "rsvp-ajax": "^1.0.0",
...
  },

Keywords

rsvp

FAQs

Package last updated on 08 Aug 2015

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