1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 AutoLoadCache 2.11 发布,缓存管理方案 下载

Discussion in '软件资讯' started by 漂亮的石头, 2016-01-27.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    487,404
    Likes Received:
    47
    2.11 @CacheDeleteKey中keyType 设置default,以实现向下兼容。

    2.10 修改记录:

    优化ConcurrentHashMap 使用,将以下代码:

    Boolean isProcessing=null;
    try {
    lock.lock();
    if(null == (isProcessing=processing.get(cacheKey))) {// 为发减少数据层的并发,增加等待机制。
    processing.put(cacheKey, Boolean.TRUE);
    }
    } finally {
    lock.unlock();
    }
    改为:
    Boolean isProcessing=processing.putIfAbsent(cacheKey, Boolean.TRUE);// 为发减少数据层的并发,增加等待机制。

    放弃使用 @CacheDeleteKey中keyType, 直接使用它的value值来判断是自定义缓存Key,还是默认生成的缓存Key。所以keyType 变得多余了。
    AutoLoadCache 2.11 发布,缓存管理方案下载地址
     
Loading...