add memory cache gc support
fix memory cache expiry bug when deleting