diff --git a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/LocalCacheStoreFactory.java b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/LocalCacheStoreFactory.java index da81605..32a0b23 100644 --- a/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/LocalCacheStoreFactory.java +++ b/ContentGrabbingJi-CacheStore-local/src/main/java/net/lamgc/cgj/bot/cache/local/LocalCacheStoreFactory.java @@ -26,7 +26,7 @@ import net.lamgc.cgj.bot.cache.convert.StringConverter; * 最简单的缓存实现, 无持久化功能. * @author LamGC */ -@Factory(name = "Local", priority = FactoryPriority.PRIORITY_LOWEST) +@Factory(name = "Local", priority = FactoryPriority.PRIORITY_LOWEST, source = CacheStoreSource.MEMORY) public class LocalCacheStoreFactory implements CacheStoreFactory { @Override diff --git a/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisCacheStoreFactory.java b/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisCacheStoreFactory.java index bf28934..3020f23 100644 --- a/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisCacheStoreFactory.java +++ b/ContentGrabbingJi-CacheStore-redis/src/main/java/net/lamgc/cgj/bot/cache/redis/RedisCacheStoreFactory.java @@ -25,7 +25,7 @@ import net.lamgc.cgj.bot.cache.exception.GetCacheStoreException; * * @author LamGC */ -@Factory(name = "Redis") +@Factory(name = "Redis", priority = FactoryPriority.PRIORITY_HIGHER, source = CacheStoreSource.REMOTE) public class RedisCacheStoreFactory implements CacheStoreFactory { @Override public SingleCacheStore newSingleCacheStore(String identify, StringConverter converter) {