| | |
| | | * @param start 开始 |
| | | * @param end 结束 0 到 -1代表所有值 |
| | | */ |
| | | public static List<Object> lGet(String key, long start, long end) { |
| | | public static List<?> lGet(String key, long start, long end) { |
| | | try { |
| | | return redisTemplate.opsForList().range(key, start, end); |
| | | } catch (Exception e) { |
| | |
| | | * @param value 值 |
| | | * @return true 存放成功 false存放失败 |
| | | */ |
| | | public static boolean lSet(String key, List<Object> value) { |
| | | public static boolean lSet(String key, List<?> value) { |
| | | try { |
| | | redisTemplate.opsForList().rightPushAll(key, value); |
| | | return true; |