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