1.cache API; 2.Query view