cujojs / meld

AOP for JS with before, around, on, afterReturning, afterThrowing, after advice, and pointcuts
Other
644 stars 65 forks source link

Simple memoizer aspect #11

Closed briancavalier closed 11 years ago

briancavalier commented 11 years ago

As per #9, create a simple memoizer aspect that accepts a function to generate a key from a param list, and uses around advice to handle the cache lookup, call the original method only when necessary, etc.