init memoryCache with sharedCache