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

uch

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

uch

Universal cache handler

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

#Universal cache handler

It's very simple async cache handler.

##Usage

var cache = new Uch(cacheInstance);

//get request
var name = "Larry";
cache.check(name, cb, function() {
    db.get(name, cache.add(name, cb));
});

//update or remove request
db.update(name, "Lana", cache.remove(name, cb));

Cache instance can be undefined, so uch just pass data without changes. Real cache instance must provide this methods:

  • get(name)
  • put(name)
  • del(name)

Keywords

universal

FAQs

Package last updated on 14 Jan 2014

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