MCPcopy Create free account
hub / github.com/badvision/jace / cacheEntry

Method cacheEntry

src/main/java/jace/library/MediaCache.java:156–163  ·  view source on GitHub ↗
(Map<String, Set<Long>> cache, String key, long id)

Source from the content-addressed store, hash-verified

154 }
155
156 private void cacheEntry(Map<String, Set<Long>> cache, String key, long id) {
157 Set<Long> ids = cache.get(key);
158 if (ids == null) {
159 ids = new HashSet<>();
160 cache.put(key, ids);
161 }
162 ids.add(id);
163 }
164
165 public static File getMediaLibraryFolder() {
166 String userHome = System.getProperty("user.home");

Callers 1

addMethod · 0.95

Calls 2

addMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected