|
|
|
@@ -40,9 +40,9 @@ public class RedisUtil { |
|
|
|
return redisTemplate.opsForList().range(key, 0, -1).stream().map(json-> JSONObject.parseObject(json.toString())).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
public static List<byte[]> getBytesList(String key) { |
|
|
|
public static List<String> getBytesList(String key) { |
|
|
|
List<Serializable> sers = redisTemplate.opsForList().range(key, 0, -1); |
|
|
|
return sers.stream().map(ser-> (byte[]) ser).collect(Collectors.toList()); |
|
|
|
return sers.stream().map(ser-> (String) ser).collect(Collectors.toList()); |
|
|
|
} |
|
|
|
|
|
|
|
public static void setBytesList(String key, byte[] bytes) { |
|
|
|
|