@@ -0,0 +1,1875 @@
+/**%0A * Copyright (c) 2015-2021, Michael Yang %E6%9D%A8%E7%A6%8F%E6%B5%B7 (fuhai999@gmail.com).%0A * %3Cp%3E%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %3Cp%3E%0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %3Cp%3E%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage io.jboot.components.cache;%0A%0A%0Aimport io.jboot.app.config.JbootConfigManager;%0Aimport io.jboot.app.config.annotation.ConfigModel;%0A%0A%0A@ConfigModel(prefix = %22jboot.aop.cache%22)%0Apublic class JbootAopCacheConfig %7B%0A%0A    // AOP %E7%BC%93%E5%AD%98%E7%9A%84%E9%BB%98%E8%AE%A4%E6%9C%89%E6%95%88%E6%97%B6%E9%97%B4%EF%BC%8C0%E4%B8%BA%E6%B0%B8%E4%B9%85%E6%9C%89%E6%95%88%EF%BC%8C%E5%8D%95%E4%BD%8D%E7%A7%92%EF%BC%8C%0A    // %E5%BD%93 @Cacheable %E5%92%8C @CachePut %E6%B3%A8%E8%A7%A3%E4%B8%8D%E9%85%8D%E7%BD%AE%E7%9A%84%E6%97%B6%E5%80%99%E9%BB%98%E8%AE%A4%E7%94%A8%E8%BF%99%E4%B8%AA%E9%85%8D%E7%BD%AE%0A    private int liveSeconds = 0;%0A    private String useCacheName = %22default%22;%0A    private String defaultCacheNamePrefix;%0A%0A    public int getLiveSeconds() %7B%0A        return liveSeconds;%0A    %7D%0A%0A    public void setLiveSeconds(int liveSeconds) %7B%0A        this.liveSeconds = liveSeconds;%0A    %7D%0A%0A    public String getUseCacheName() %7B%0A        return useCacheName;%0A    %7D%0A%0A    public void setUseCacheName(String useCacheName) %7B%0A        this.useCacheName = useCacheName;%0A    %7D%0A%0A    public String getDefaultCacheNamePrefix() %7B%0A        return defaultCacheNamePrefix;%0A    %7D%0A%0A    public void setDefaultCacheNamePrefix(String defaultCacheNamePrefix) %7B%0A        this.defaultCacheNamePrefix = defaultCacheNamePrefix;%0A    %7D%0A%0A    private static JbootAopCacheConfig me;%0A%0A    public static JbootAopCacheConfig getInstance() %7B%0A        if (me == null) %7B%0A            me = JbootConfigManager.me().get(JbootAopCacheConfig.class);%0A        %7D%0A        return me;%0A    %7D%0A%0A%7D%0A

移动 AOP 的缓存配置