memoiz

阅读时长 2 分钟读完

Node.js / javascript module to cache method's returned values

memoiz

Node.js / javascript module to cache method's return value

Installation

Usage

-- -------------------- ---- -------

--- ------ - -------- -------- --

--- --- - ---------------------- - -- - - -
    ------ - - --
---

-- ----- --- ---- ------- - ----- ---
---- -- - -- -- -

-- ------ --- ---- ------- - ----- ---
-- ------- ------- -------- ------
---- -- - -- -- -

Future features

In the future we should add:

  • Abillity to detect uniqueness on arguments to cache specific responses (at the time it is caching only one result);
  • Different kinds of stores;

HomePage

https://github.com/findhit/memoiz

Repository

https://github.com/findhit/memoiz.git

来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/60066f3b1d8e776d080409f8

纠错
反馈