in shared/src/main/java/org/apache/hupa/shared/storage/AppCache.java [141:167]
public <T extends BaseProxy> void storeProxies(String key, List<T> proxies, boolean letRemoveProxy, boolean crypt) {
List<String> ids = getIds(proxies);
List<String> current = getStoredIdsByIdx(key);
if (letRemoveProxy) {
for (String i : current) {
removeProxy(i);
}
current = ids;
}
if (proxies != null) for (T i : proxies) {
String id = getKey(i);
storeProxy(i, id, crypt);
if (!current.contains(id)) {
current.add(id);
}
}
if (key != null) {
if (current.isEmpty()) {
removeItem(key);
removeItem(TIMESTAMP + key);
} else {
setItem(key, getIdsAsString(current));
}
}
}