Content-Length: 273885 | pFad | https://github.com/HowProgrammingWorks/Memoization

E7 GitHub - HowProgrammingWorks/Memoization: Memoization of synchronous and asynchronous functions
Skip to content

HowProgrammingWorks/Memoization

Repository files navigation

Мемоизация функций: memoize в JavaScript

Мемоизация функций: memoize в JavaScript

Tasks:

  • see examples
  • implement time expiration cash
  • implement memoize with max records count and removing least used
  • implement memoize with max total stored data size
  • implement universal memoize compatible with both sync and async function
  • implement functional object with following properties methods and events:
    • memoized.clear() - clear cache
    • memoized.add(key, value) - add value to cach
    • memoized.del(key) - remove value from cach
    • memoized.get(key) - returns saved value
    • memoized.timeout: Number - cache timout
    • memoized.maxSize: Number - maximum cache size in bytes
    • memoized.maxCount: Number - maximum cache size in item count
    • memoized.on('add', Function)
    • memoized.on('del', Function)
    • memoized.on('clear', Function)

Sponsor this project

Contributors 3

  •  
  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/HowProgrammingWorks/Memoization

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy