Code example for Cache

Methods: invalidate

0
    /** 
     * Invalidate the object with the specified key. 
     * @param key The key whose Graph to invalidate 
     */ 
    public void invalidate(String key) {
        cache.invalidate(key);
    } 
 
    /** 
     * Invalidates all graphs matching argument pattern. 
     * @param pattern the pattern to match for graph ids 
     */ 
    public void invalidateMatching(Pattern pattern) {
        for (String key : getMatchingCacheKeys(pattern)) {
            invalidate(key);
        } 
    } 
 
    /** 
     * Gets all matching graph cache ids/keys. 
Connect your IDE to all the code out there  Get Codota for Java