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
package com.everyday.word;
 
import com.everyday.word.service.RedisManager;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
 
import javax.annotation.Resource;
 
/**
 * @author hxh
 * @title: RedisTest
 * @description: TODO
 * @date 2025/2/13 10:11
 */
@SpringBootTest
public class RedisTest {
 
    @Resource
    private RedisManager redisManager;
 
    @Test
    public void test() {
//        redisManager.cacheCommonString("test","123123",10);
        System.out.println(redisManager.getCommonString("test"));
    }
 
 
}