cache function was implemented.