zouyu
2025-08-14 f7a525edfb0b085636837e186c00720e16e4e701
ruoyi-common/src/main/java/com/ruoyi/common/utils/RedisUtil.java
@@ -153,6 +153,7 @@
    public static boolean set(String key, Object value) {
        try {
            redisTemplate.opsForValue().set(key, value);
            return true;
        } catch (Exception e) {
@@ -470,7 +471,7 @@
     * @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) {
@@ -556,7 +557,7 @@
     * @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;
@@ -576,7 +577,7 @@
     * @param time  时间(秒)
     * @return true 存放成功 false存放失败
     */
    public static boolean lSet(String key, List<Object> value, long time) {
    public static boolean lSet(String key, List<?> value, long time) {
        try {
            if (time > 0) {
                redisTemplate.opsForList().rightPushAll(key, value);