mirror of https://github.com/M66B/FairEmail.git
Cache contact info 120 seconds
This commit is contained in:
parent
b1d217ed46
commit
f736f15fbb
|
@ -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() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue