package org.eclipse.buckminster.subversive.internal;
import java.util.Map;
import java.util.UUID;
import org.eclipse.buckminster.subversion.GenericCache;
import org.eclipse.buckminster.subversion.ISubversionCache;
import org.eclipse.team.svn.core.connector.SVNEntry;
public class SubversiveCache implements ISubversionCache<SVNEntry> {
private Map<String, SVNEntry[]> listCache;
private static final UUID CACHE_KEY_LIST_CACHE = UUID.randomUUID();
@Override
public SVNEntry[] get(String key) {
return listCache.get(key);
}
@Override
public void initialize(Map<UUID, Object> userCache) {
listCache = GenericCache.getCache(userCache, CACHE_KEY_LIST_CACHE);
}
@Override
public void put(String key, SVNEntry[] value) {
listCache.put(key, value);
}
}