Jeff, It can easily be ported to browser with help of Webmake https://github.com/medikoo/modules-webmake (it's mentioned in documentation) Anyway to make it even easier I prepared a bundle -> https://github.com/medikoo/memoize/downloads ;)
According to LRU option, you can achieve it with 'max' option -> https://github.com/medikoo/memoize#limiting-cache-size See also 'maxAge' and 'dispose' options. Is that what you're after? On Wednesday, September 19, 2012 5:17:58 PM UTC+2, Jeff Barczewski wrote: > > Mariusz, > > I took a closer look and realized that there a many dependencies (I was > thinking it was self contained), so not as simple to get into the browser, > either need to use something like AMD or build a distribution file with one > of the commonsjs browser build solutions. > > Jeff > > > > On Wednesday, 19 September 2012 10:14:57 UTC-5, Jeff Barczewski wrote: >> >> Mariusz, >> >> memoize looks really nice! I am going to try it out for some projects I >> am working on. >> >> As for suggestions: >> >> - you might consider wrapping the file in a function closure so it can >> be used directly in a browser >> - could you add a LRU option? (I know you have many other algorithms, >> but would be nice to have if it doesn't add too much bulk) >> >> Thanks for sharing this! >> >> All the best, >> >> Jeff >> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
