Constructor and Description |
---|
Cache(boolean disabled,
int maxSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
Retrieves the value with the specified key from this cache.
|
V |
put(K key,
V value)
Adds the value with the specified key to this cache.
|
public Cache(boolean disabled, int maxSize)
disabled
- If maxSize
- The maximum size of the cache. If this threshold is reached, the cache is flushed.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.