|
|
|
@@ -44,15 +44,6 @@ public class RedisUtil { |
|
|
|
return redisTemplate.opsForList().range(key, 0, -1); |
|
|
|
} |
|
|
|
|
|
|
|
public static List<String> getBytesList(String key) { |
|
|
|
List<Serializable> sers = redisTemplate.opsForList().range(key, 0, -1); |
|
|
|
return sers.stream().map(ser-> (String) ser).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
public static void setBytesList(String key, byte[] bytes) { |
|
|
|
redisTemplate.opsForList().leftPush(key, bytes); |
|
|
|
} |
|
|
|
|
|
|
|
public static Long getListCount(String key) { |
|
|
|
return redisTemplate.opsForList().size(key); |
|
|
|
} |
|
|
|
|