<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                獲取緩存對象 ~~~ //獲取緩存對象 ICache cache = getCacheManager().getICache("XX_CACHE_NAME"); /** * 從spring上下文中獲取緩存管理器 * * @return */ public ICacheManager getCacheManager() { String springCacheManager = SpringPropertyHolder.getContextProperty("cacheManagerName", "springCacheManager"); return SpringContextHolder.getBean(springCacheManager, ICacheManager.class); } ~~~ 或者直接 ``` ICache cache = CacheManager.getCacheManager().getICache("XX_CACHE_NAME"); ``` 接口方法定義 ~~~ //緩存接口繼承自spring public interface ICache extends org.springframework.cache.Cache { /** * 置入緩存 * * @param key * @param value */ void put(Object key, Object value); /** * get方法返回的是個ValueWrapper類型對象,該方法轉換成值 * * @param key * @return */ <T> T getValue(Object key); /** * 設置過期時間。-1表示永不過期,0表示立即失效 * * @param key:鍵值 * @param expire:存活時間。單位秒 */ void expire(Object key, long expireSeconds); /** * 移除key值 * * @param key the key whose mapping is to be removed from the cache */ void evict(Object key); /** * 清空緩存 * */ void clear(); /** * 返回key的剩余存活時間,單位毫秒 */ Long ttl(Object key); /** * 獲取所有key */ Iterator<Object> keys(); /** * 獲取大小 */ Long size(); /** * 獲取緩存名稱. */ String getName(); /** * 獲取緩存內部對象 */ Object getNativeCache(); /** * 獲取緩存管理器 * * @return */ CacheManager getCacheManager(); } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看