Pom introduces dependencies

<ehcache xmlns:xsi=”

 xsi:noNamespaceSchemaLocation="
 updateCheck="false">
Copy the code

3. Annotate Service layer methods

@cacheevict (value=”menucache”, allEntries=true), update the page game cache

@cacheable (key=”‘menu-‘+#parentId”,value=”menucache”) Cacheable(key=”‘menu-‘+#parentId”,value=”menucache”) Cacheable(key=”‘menu-‘+#parentId”,value=”menucache”

XML name=”menucache”

/** Delete menu

@param MENU_ID @fhadmin.org */ If there is more intuitive understanding of electron, you can also refer to:

www.pizei.com

@CacheEvict(value=”menucwww.pizei.comache”, allEntries=true) public void deleteMenuById(String MENU_ID) throws Exception{ this.cleanRedis(); menuMapper.deleteMenuById(MENU_ID); } / * *

@param parentId @return @fhadmin.org */ @cacheable (key=”‘menu-‘+#parentId”,value=”menucache”) public List