gao
2020-07-15 ccf1e6a64639904b6856ddf7541212da2ca73f64
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
package com.xcong.excoin;
 
import com.xcong.excoin.modules.member.dao.MemberDao;
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.utils.RedisUtils;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
/**
 * @author wzy
 * @date 2020-07-15
 **/
@Slf4j
@SpringBootTest
public class RedisTest {
 
    @Resource
    private MemberDao memberDao;
 
    @Resource
    private RedisUtils redisUtils;
 
    @Test
    public void redisResetTest() {
        MemberEntity member = memberDao.selectById(72L);
        redisUtils.set("app_893e3963d1fe4be3b047d4a6e5f99ca9", member);
    }
 
}