diff --git a/src/main/java/cc/ryanc/halo/cache/StringCacheStore.java b/src/main/java/cc/ryanc/halo/cache/StringCacheStore.java index 196bffca5..aa090805f 100644 --- a/src/main/java/cc/ryanc/halo/cache/StringCacheStore.java +++ b/src/main/java/cc/ryanc/halo/cache/StringCacheStore.java @@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; @Slf4j public abstract class StringCacheStore implements CacheStore { - public void putForWechat(String key, T value, long timeout, TimeUnit timeUnit) { + public void putForString(String key, T value, long timeout, TimeUnit timeUnit) { Assert.hasText(key, "Cache key must not be blank"); Assert.notNull(value, "Cache value must not be null"); Assert.isTrue(timeout > 0, "Timeout must not be less than 0"); @@ -59,7 +59,7 @@ public abstract class StringCacheStore implements CacheStore { @SuppressWarnings("unchecked") @NonNull - public Optional getForWechat(@NonNull String key, @NonNull Class type) { + public Optional getForString(@NonNull String key, @NonNull Class type) { Assert.hasText(key, "Cache key must not be blank"); Assert.notNull(type, "Cache type must not be null");