MCPcopy
hub / github.com/TuiQiao/CBoard / put

Method put

src/main/java/org/cboard/cache/HeapCacheManager.java:14–17  ·  view source on GitHub ↗
(String key, T data, long expire)

Source from the content-addressed store, hash-verified

12 private ConcurrentMap<String, CacheObject> cache = new ConcurrentHashMap<>();
13
14 @Override
15 public void put(String key, T data, long expire) {
16 cache.put(key, new CacheObject(new Date().getTime(), expire, data));
17 }
18
19 @Override
20 public T get(String key) {

Callers

nothing calls this directly

Calls 1

putMethod · 0.65

Tested by

no test coverage detected