From 90b7007b6e5d2968f3500e3bbbe3653ee09c3717 Mon Sep 17 00:00:00 2001 From: johnniang Date: Mon, 18 Mar 2019 21:21:56 +0800 Subject: [PATCH] Change StringCacheStore method names --- src/main/java/cc/ryanc/halo/cache/StringCacheStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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");