Example usage for com.google.common.cache Cache invalidateAll

List of usage examples for com.google.common.cache Cache invalidateAll

Introduction

In this page you can find the example usage for com.google.common.cache Cache invalidateAll.

Prototype

void invalidateAll(Iterable<?> keys);

Source Link

Document

Discards any cached values for keys keys .

Usage

From source file:org.flite.cach3.aop.LogicalCacheImpl.java

public void invalidateBulk(final Collection<String> ids) {
    if (ids == null || ids.size() == 0) {
        return;//  w  w  w.j a va 2s.c om
    }

    for (final Cache<String, Object> cache : caches.values()) {
        if (cache != null) {
            cache.invalidateAll(ids);
        }
    }
}