MCPcopy Create free account
hub / github.com/InterviewReady/Low-Level-Design / set

Method set

distributed-cache/src/main/java/Cache.java:69–71  ·  view source on GitHub ↗
(KEY key, VALUE value)

Source from the content-addressed store, hash-verified

67 }
68
69 public CompletionStage<Void> set(KEY key, VALUE value) {
70 return getThreadFor(key, setInCache(key, value));
71 }
72
73 private CompletionStage<VALUE> getFromCache(KEY key) {
74 final CompletionStage<Record<KEY, VALUE>> result;

Callers 8

Eviction_LRUMethod · 0.80
Eviction_LFUMethod · 0.80
ExpiryOnSetMethod · 0.80
ExpiryOnEvictionMethod · 0.80
FetchingWriteBackMethod · 0.80
FetchingWriteThroughMethod · 0.80
RaceConditionsMethod · 0.80

Calls 2

getThreadForMethod · 0.95
setInCacheMethod · 0.95

Tested by 8

Eviction_LRUMethod · 0.64
Eviction_LFUMethod · 0.64
ExpiryOnSetMethod · 0.64
ExpiryOnEvictionMethod · 0.64
FetchingWriteBackMethod · 0.64
FetchingWriteThroughMethod · 0.64
RaceConditionsMethod · 0.64