Update memoize.js

it can get and remove the cache result within the cachedfuc