package com.qianwen.core.redis.cache;
|
|
import java.time.Duration;
|
import org.springframework.lang.Nullable;
|
|
/* loaded from: blade-starter-redis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/redis/cache/CacheKey.class */
|
public class CacheKey {
|
private final String key;
|
@Nullable
|
private Duration expire;
|
|
public String toString() {
|
return "CacheKey(key=" + getKey() + ", expire=" + getExpire() + ")";
|
}
|
|
public CacheKey(final String key, @Nullable final Duration expire) {
|
this.key = key;
|
this.expire = expire;
|
}
|
|
public String getKey() {
|
return this.key;
|
}
|
|
@Nullable
|
public Duration getExpire() {
|
return this.expire;
|
}
|
|
public CacheKey(String key) {
|
this.key = key;
|
}
|
}
|