zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
//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;
//    }
//}