|
|
@@ -1,6 +1,9 @@
|
|
|
package com.uas.platform.b2c.javase.collection;
|
|
|
|
|
|
import org.junit.Test;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.data.redis.core.RedisTemplate;
|
|
|
+import org.springframework.data.redis.core.ValueOperations;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
|
@@ -56,4 +59,12 @@ public class ListTest {
|
|
|
System.out.println(format);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private RedisTemplate<String, String> redisTemplate;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void redisTest() {
|
|
|
+ ValueOperations<String, String> valueOperations = redisTemplate.opsForValue();
|
|
|
+ }
|
|
|
}
|