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)
Deprecated.
Specialized version of
containsKey for int keys. |
V |
peek(int key)
Deprecated.
Specialized version of
peek for int keys. |
asMap, clear, clearAndClose, close, computeIfAbsent, containsAndRemove, containsKey, entries, expireAt, get, getAll, getCacheManager, getEntry, getName, getStatistics, invoke, invokeAll, isClosed, keys, loadAll, peek, peekAll, peekAndPut, peekAndRemove, peekAndReplace, peekEntry, prefetch, prefetchAll, put, putAll, putIfAbsent, reloadAll, remove, removeAll, removeAll, removeIfEquals, replace, replaceIfEquals, requestInterface, toString
put, remove
get
V 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–2020 headissue GmbH, Munich.