GlobalCacheTest.java 509 B

12345678910111213141516171819202122232425262728
  1. package test;
  2. import com.gyee.SpringbootStart;
  3. import com.gyee.frame.common.cache.IGlobalCache;
  4. import com.gyee.frame.common.spring.SpringUtils;
  5. import lombok.SneakyThrows;
  6. import org.springframework.boot.SpringApplication;
  7. public class GlobalCacheTest {
  8. @SneakyThrows
  9. public static void main(String[] args) {
  10. SpringApplication.run(SpringbootStart.class, args);
  11. IGlobalCache globalCache= SpringUtils.getBean("globalCache");
  12. globalCache.set("test",11111);
  13. }
  14. }