示例#1
0
 public bool TryGet(IPAddress ipAddress, out AddressResolvedResult result)
 {
     return(_cache.TryGetValue(ipAddress, out result));
 }
示例#2
0
 public void AddOrSet(IPAddress ipAddress, AddressResolvedResult result)
 {
     _cache.AddOrUpdate(ipAddress, a => result, (a, r) => result);
 }