| | |
| | | import org.springframework.lang.Nullable; |
| | | import org.springframework.util.Assert; |
| | | |
| | | /* loaded from: blade-starter-redis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/redis/cache/BladeRedis.class */ |
| | | public class BladeRedis { |
| | | private final RedisTemplate<String, Object> redisTemplate; |
| | | private final ValueOperations<String, Object> valueOps; |
| | |
| | | return this.redisTemplate.move(key, dbIndex); |
| | | } |
| | | |
| | | /** |
| | | * 设置指定key的超市时间 |
| | | * @param key redisKey |
| | | * @param seconds 秒数 |
| | | * @return |
| | | */ |
| | | public Boolean expire(String key, long seconds) { |
| | | return this.redisTemplate.expire(key, seconds, TimeUnit.SECONDS); |
| | | } |