@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);

/@duailibe/miche/

    Package Sidebar

    Install

    npm i @duailibe/miche

    Weekly Downloads

    488

    Version

    1.0.1

    License

    none

    Unpacked Size

    2.28 kB

    Total Files

    4

    Last publish

    Collaborators

    • duailibe