Searched refs:cache (Results 1 - 1 of 1) sorted by relevance

/org.ahmadsoft.jpostal-1.0.44/src/org/ahmadsoft/postal/
H A DReadOnceStrategy.java31 * and subsequently reads from cache. The Read-Once strategy
42 private static Map cache = Collections.synchronizedMap(new HashMap()); field in class:ReadOnceStrategy
84 if (!cache.containsKey(new Integer(postalCode))) {
86 cache.put(new Integer(postalCode), candidates);
88 candidates = (List) cache.get(new Integer(postalCode));
100 cache = null;

Completed in 1 milliseconds