Cache contact info 120 seconds

This commit is contained in:
M66B 2019-05-18 21:34:25 +02:00
parent b1d217ed46
commit f736f15fbb
1 changed files with 1 additions and 2 deletions

View File

@ -56,11 +56,10 @@ public class ContactInfo {
private Uri lookupUri; private Uri lookupUri;
private long time; private long time;
private static Object lock = new Object();
private static Map<String, Uri> emailLookup = new ConcurrentHashMap<>(); private static Map<String, Uri> emailLookup = new ConcurrentHashMap<>();
private static Map<String, ContactInfo> emailContactInfo = new HashMap<>(); private static Map<String, ContactInfo> emailContactInfo = new HashMap<>();
private static final long CACHE_CONTACT_DURATION = 60 * 1000L; private static final long CACHE_CONTACT_DURATION = 120 * 1000L;
private ContactInfo() { private ContactInfo() {
} }