net.sf.ehcache.Cache.flush()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(200)

本文整理了Java中net.sf.ehcache.Cache.flush()方法的一些代码示例,展示了Cache.flush()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.flush()方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:flush

Cache.flush介绍

[英]Flushes all cache items from memory to the disk store, and from the DiskStore to disk.
[中]

代码示例

代码示例来源:origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCache(String region) {
  Cache cache = this.cacheManager.getCache(region);
  if (cache != null) {
    cache.flush();
  }
}

代码示例来源:origin: net.sf.ehcache/ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCaches() {
  for (String name : cacheManager.getCacheNames()) {
    Cache cache = this.cacheManager.getCache(name);
    if (cache != null) {
      cache.flush();
    }
  }
}

代码示例来源:origin: spullara/havrobase

public void invalidate() {
  cache.flush();
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCache(String region) {
  Cache cache = this.cacheManager.getCache(region);
  if (cache != null) {
    cache.flush();
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCache(String region) {
  Cache cache = this.cacheManager.getCache(region);
  if (cache != null) {
    cache.flush();
  }
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 */
public void flushRegionCache(String region) {
  Cache cache = this.cacheManager.getCache(region);
  if (cache != null) {
    cache.flush();
  }
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void clearFeatures() {
  getCacheFeatures().flush();
}

代码示例来源:origin: ff4j/ff4j

/** {@inheritDoc} */
@Override
public void clearProperties() {
  getCacheProperties().flush();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCaches() {
  for (String name : cacheManager.getCacheNames()) {
    Cache cache = this.cacheManager.getCache(name);
    if (cache != null) {
      cache.flush();
    }
  }
}

代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * {@inheritDoc}
 */
public void flushRegionCaches() {
  for (String name : cacheManager.getCacheNames()) {
    Cache cache = this.cacheManager.getCache(name);
    if (cache != null) {
      cache.flush();
    }
  }
}

代码示例来源:origin: net.sf.ehcache.internal/ehcache-core

/**
 * {@inheritDoc}
 */
public void flushRegionCaches() {
  for (String name : cacheManager.getCacheNames()) {
    Cache cache = this.cacheManager.getCache(name);
    if (cache != null) {
      cache.flush();
    }
  }
}

代码示例来源:origin: edu.illinois.cs.cogcomp/cachingcurator

/**
 * Be sure to open the cache before and shut after!
 */
public static void putInCache(String key, Serializable value) {
  Element elem = new Element(key, value);
  curatorCache.put(elem);
  curatorCache.flush();
}

代码示例来源:origin: org.ujmp/ujmp-ehcache

public void flush() throws IOException {
  getCache().flush();
}

代码示例来源:origin: ujmp/universal-java-matrix-package

public void flush() throws IOException {
  getCache().flush();
}

代码示例来源:origin: org.ujmp/ujmp-ehcache

public void clear() {
  getCache().removeAll();
  getCache().flush();
}

代码示例来源:origin: caojx-git/learn

cache.flush();

代码示例来源:origin: ujmp/universal-java-matrix-package

public void clear() {
  getCache().removeAll();
  getCache().flush();
}

代码示例来源:origin: OneBusAway/onebusaway-application-modules

cacheManager.getCache(cacheName).flush();
cacheManager.clearAllStartingWith(cacheName);

相关文章

Cache类方法