Skip to content

sami-sweng/assoc-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

assoc-cache

A simple local memory cache via an associative array support .set() .get()

Installation

npm install assoc-cache

Usage

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

// usage
cache.set('foo', 'bar');
cache.get('foo', function(value){console.log(value)});

Which should print

bar

API

set function(key, value)

  • stores a value

get function(key, callback)

  • callback value or undefined

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published