Exemple #1
0
  public void remove(String key) {

    if (!cacheEnabled) {
      return;
    }

    contentCache.remove(key);
    log.debug("REMOVE " + key);
  }
Exemple #2
0
  public void clear() {

    if (!cacheEnabled) {
      return;
    }

    contentCache.clear();
    log.debug("CLEAR");
  }
Exemple #3
0
  public void put(String key, Object value) {

    if (!cacheEnabled) {
      return;
    }

    contentCache.put(key, new LazyExpiringCacheEntry(value));
    log.debug("PUT " + key);
  }