@duailibe/miche

1.0.1 • Public • Published

miche

A simple multi-index cache for JavaScript for objects

Why

This cache was built for caching specifically functions that receive objects as arguments, thus using the object references as cache keys.

Usage

import MultiIndexCache from '@duailibe/miche';

const cachedFn = MultiIndexCache(fn);

// this will be cached
cachedFn(objA, objB, objC);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    316
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    316

Package Sidebar

Install

npm i @duailibe/miche

Weekly Downloads

277

Version

1.0.1

License

none

Unpacked Size

2.28 kB

Total Files

4

Last publish

Collaborators

  • duailibe