zjh
2025-01-20 73a816fd2b1e29c25d615c85ce34b12b55c16ccf
ltkj-common/src/main/java/com/ltkj/common/core/redis/RedisCache.java
@@ -43,7 +43,7 @@
     * @param key   缓存的键值
     * @param value 缓存的值
     */
    public <T> void setCacheObject(final String key, final T value) {
    public <T> void setCacheObject(final String key, final Object value) {
        redisTemplate.opsForValue().set(key, value);
    }
@@ -211,12 +211,15 @@
     *
     * @param key   Redis键
     * @param hKey  Hash键
     * @param value 值
     */
    public <T> void setCacheMapValue(final String key, final String hKey, final T value) {
    public <T> void setCacheMapValue(final String key, final String hKey, final Object value) {
        redisTemplate.opsForHash().put(key, hKey, value);
    }
    public <T> void setHashKeyExpireTime(final String key, final Long time, final TimeUnit  unit) {
        redisTemplate.expire(key,time,unit);
    }
    /**
     * 获取Hash中的数据
     *