CacheFacade.java 395 B

1234567891011121314151617181920212223
  1. package com.diagbot.facade;
  2. import org.springframework.cache.annotation.CacheEvict;
  3. import org.springframework.stereotype.Component;
  4. /**
  5. * @Description:
  6. * @Author:zhoutg
  7. * @time: 2018/11/23 11:37
  8. */
  9. @Component
  10. public class CacheFacade {
  11. /**
  12. * 清除缓存信息
  13. *
  14. * @return
  15. */
  16. @CacheEvict(value = "cache", allEntries = true)
  17. public void clear() {
  18. }
  19. }