public interface IntCache<V> extends Cache<Integer,V>, IntKeyValueStore<V>
Cache for int keys.
Using this interface has performance benefits when int keys are used. No autoboxing is needed to access the cache entries. Furthermore, memory is saved, since no key objects need to be saved.
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(int key)
Specialized version of
containsKey for int keys. |
V |
peek(int key)
Specialized version of
peek for int keys. |
asMap, clear, clearAndClose, close, computeIfAbsent, containsAndRemove, containsKey, entries, expireAt, get, getAll, getCacheManager, getEntry, getName, invoke, invokeAll, isClosed, keys, loadAll, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, prefetch, prefetchAll, put, putAll, putIfAbsent, reloadAll, remove, removeAll, removeAll, removeIfEquals, replace, replaceIfEquals, requestInterface, toStringput, removegetV peek(int key)
peek for int keys.Cache.peek(Object)boolean containsKey(int key)
containsKey for int keys.Cache.containsKey(Object)cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.