public Dictionary<String, String> getCache(UdpTarget target, string oid) { RemoteQueryCache rqc = new RemoteQueryCache(); Console.WriteLine("trying from cache"); Dictionary<string,string> data = rqc.getCache(target.Address.ToString(), oid); Console.WriteLine("reading from cache " + data.Count ); return data; }
public void setCache(UdpTarget target, string oid, Dictionary<string, string> data) { RemoteQueryCache rqc = new RemoteQueryCache(); Console.WriteLine("writting to cache"); rqc.setCache(target.Address.ToString(), oid, data); }