Example usage for org.apache.commons.collections4.map LRUMap put

List of usage examples for org.apache.commons.collections4.map LRUMap put

Introduction

In this page you can find the example usage for org.apache.commons.collections4.map LRUMap put.

Prototype

V put(K key, V value);

Source Link

Document

Associates the specified value with the specified key in this map (optional operation).

Usage

From source file:org.apache.jena.permissions.impl.SecuredItemImpl.java

/**
 * set the cache value.//from  w w w . j a  va2s.c o m
 * 
 * @param key
 *            The key to set the value for.
 * @param value
 *            The value to set.
 */
private void cachePut(final CacheKey key, final boolean value) {
    final LRUMap<CacheKey, Boolean> cache = SecuredItemImpl.CACHE.get();
    if (cache != null) {
        cache.put(key, value);
        SecuredItemImpl.CACHE.set(cache);
    }
}