MCPcopy
hub / github.com/google/guava / put

Method put

android/guava/src/com/google/common/cache/Cache.java:126–126  ·  android/guava/src/com/google/common/cache/Cache.java::Cache.put

Associates {@code value} with {@code key} in this cache. If the cache previously contained a value associated with {@code key}, the old value is replaced by {@code value}. <p>Prefer {@link #get(Object, Callable)} when using the conventional "if cached, return; otherwise create, cache and return" pa

(K key, V value)

Source from the content-addressed store, hash-verified

124 * @since 11.0
125 */
126 void put(K key, V value);
127
128 /**
129 * Copies all of the mappings from the specified map to the cache. The effect of this call is

Callers 15

getAllMethod · 0.65
CacheBuilderSpecClass · 0.65
getAllPresentMethod · 0.65
getAllMethod · 0.65
putMethod · 0.65
putIfAbsentMethod · 0.65
setValueMethod · 0.65
putMethod · 0.65
putMethod · 0.65
getAllPresentMethod · 0.65
ofMethod · 0.65
putMethod · 0.65

Implementers 4

LocalManualCacheguava/src/com/google/common/cache/Loca
ForwardingCacheguava/src/com/google/common/cache/Forw
LocalManualCacheandroid/guava/src/com/google/common/ca
ForwardingCacheandroid/guava/src/com/google/common/ca

Calls

no outgoing calls

Tested by 15

setUpMethod · 0.52
setCountMethod · 0.52
createMethod · 0.52
testGetIfPresentMethod · 0.52
testGetAllPresentMethod · 0.52
testAutoRefreshMethod · 0.52
segmentTableMethod · 0.52
loadAllMethod · 0.52
testBulkLoad_clobberMethod · 0.52