cache enhance

1.  corrections to code sample ,reduce unnecessary assignment in global.memoize
2.  add get/remove cache api within the cached func