|
//package com.changhong.demo.test;
|
//
|
//import org.junit.Test;
|
//import org.junit.runner.RunWith;
|
//import org.springframework.beans.factory.annotation.Autowired;
|
//import org.springframework.boot.test.context.SpringBootTest;
|
//import org.springframework.test.context.junit4.SpringRunner;
|
//
|
//import com.changhong.epc.demo.DemoApplication;
|
//import com.changhong.epc.demo.service.tenant.strategy.TenantInfoService;
|
//import com.iemsoft.framework.cloud.redis.service.CacheUtils;
|
//
|
//@RunWith(SpringRunner.class)
|
//@SpringBootTest(classes = DemoApplication.class)
|
//public class CacheTest {
|
//
|
// @Autowired
|
// private TenantInfoService tenantInfoService;
|
//
|
// //cacheAop__proessLogServiceImpl_ec308451c1d095c528cfa3c009ea7235_a21cafb4c405e6997671a02e578b9b1e
|
// //cacheAop__proessLogServiceImpl_*****************************************************************
|
//
|
// @Test
|
// public void test(){
|
//// cacheSave("cacheAop__proessLogServiceImpl_ec308451c1d095c528cfa3c009ea7235_a21cafb4c405e6997671a02e578b9b1e", "456");
|
//// // System.err.println(cacheGet("cacheAop__proessLogServiceImpl_ec308451c1d095c528cfa3c009ea7235_a21cafb4c405e6997671a02e578b9b1e"));
|
//// removeCache("cacheAop__proessLogServiceImpl_ec308451c1d095c528cfa3c009ea7235_a21cafb4c405e6997671a02e578b9b1e");
|
//// // System.err.println(cacheGet("cacheAop__proessLogServiceImpl_ec308451c1d095c528cfa3c009ea7235_a21cafb4c405e6997671a02e578b9b1e"));
|
// tenantInfoService.test();
|
// }
|
//
|
// public int cacheSave(String key, Object val){
|
// CacheUtils.set(key, val, -1);
|
// return 0;
|
// }
|
//
|
// public Object cacheGet(String key){
|
// return CacheUtils.get(key, Object.class);
|
// }
|
//
|
// public int removeCache(String key){
|
// CacheUtils.batchDel(key);
|
// return 0;
|
// }
|
//}
|